Write code to complete doublepennies()'s base case. sample output for below program: number of pennies after 10 days: 1024 note: these activities may test code with different test values. this activity will perform three tests, with starting pennies = 1 and userdays = 10, then with starting pennies = 1 and userdays = 40, then with startingpennies = 1 and userdays = 1. see how to use zybooks. also note: if the submitted code has an infinite loop, the system will stop running the code after a few seconds, and report "program end never reached." the system doesn't print the test case that caused the reported message.

Answers

Answer 1
Answer:

answer with coding and answer is attached in word file below

Answer 2
Answer:

The doublePennies() function is an illustration of a recursive function in Java

How to complete the doublePennies() function?

The base case of the doublePennies() function is that:

When the number of days is 0, then the total available pennies is the same as the total number of pennies.

The algorithm of the above highlight is:

if numDays equals 0 then

    totalPennies = numPennies

Using the above algorithm, the complete base case is:

if(numDays == 0){

       totalPennies = numPennies;

}

Read more about Java programs at:

brainly.com/question/15245185


Related Questions

How many degrees does the minute hand of a clock travel in 1 minute? What angle does an hour hand travel in 1 min?
A baseball player leads off the game and hits a long home run. The ball contacts the bat about 5 ft. above the ground with a velocity of 16.0 ft./s. At what time will the ball hit the ground?
If X=2 Y=3 then, xy^2
What is the range in temperatures if the high temperature is 78 degrees and the lowtemperature is -23 degrees?
The sum of two numbers is twenty-five. One number is five less than the other.

7+16y=;1/4 solution or no solution?

Answers

Answer:

the answer is, Y= -27/64

Factor completely 2x2 − 32.Prime
2(x2 − 16)
2(x + 4)(x + 4)
2(x + 4)(x − 4)

Answers

Answer:

2(x + 4)(x − 4)

Step-by-step explanation:

2x^2 − 32

Factor out 2.

2( x^2 -16)

The term inside the parentheses is the difference of squares.

(a^2 - b^2) = (a-b)(a+b)

2 ( x-4)(x+4)

Bernie has decided to purchase a new car with a list price of $18,575. Sales tax in Bernie’s state is 7.40%, and he will be responsible for a $795 vehicle registration fee and a $110 documentation fee. Bernie plans to trade in his existing car, a 1999 Buick Riviera in good condition, and finance the rest of the cost for five years at an interest rate of 12.77%, compounded monthly. Assuming that the dealer gives Bernie the listed trade-in price for his car, what will his monthly payment be? Round all dollar values to the nearest cent B. 439.12 is the correct answer.

Answers

18,575 x 7.40% = 1,374.55

18,575 + 1,374.55 = 19,949.55

19,949.55 + 795 + 110 = 20,854.55

20,854.55 divided by 5 = 4,170.91

4,170.91 divided by 12 = 347.58

347.58  x 12.77% = 44.39 

347.58 + 44.39 = 391.97

i am assuming that is the answer but since is see that you have 439.12 as an answer im not so sure 

Answer:

$439.12

Step-by-step explanation:

Which of the following functions has the greatest y-intercept?f(x)
X: -3, -2, -1, 0, 1, 2
Y: 15, -8, -1, 3, 6, 10

g(x) = –4 sin(5x) + 3

Options:
A. f(x)
B. g(x)
C. f(x) and g(x) have the same y-intercept
D. Not enough information

Answers

Answer:

C. f(x) and g(x) have the same y-intercept

Step-by-step explanation:

To find the y-intercept, we need to plug in x = 0

f(x) is given in table values.

When x = 0, y = 3 from the table values.

Therefore, y-intercept of f(x) = 3

g(x) = -4 sin(5x) + 3

Plug in x = 0

y = -4 sin(5.0) + 3

y = -4 sin 0 + 3         [sin 0 = 0]

y = 0 + 3

y = 3

Therefore, y-intercept of g(x) = 3

Answer: C. f(x) and g(x) have the same y-intercept

Hope this will helpful.

Thank you.

C, just consider when x=0,find the y

Anyone know this at all?

Answers

Answer:

  24.2

Step-by-step explanation:

You are given the hypotenuse and angle, and you want to find the length of the adjacent side.

The mnemonic SOH CAH TOA reminds you that the relation between angle and sides is ...

  Cos = Adjacent/Hypotenuse

  cos(41°) = x/32

  x = 32·cos(41°)

  x ≈ 24.2

A rectangle with an area of 324 square meters has a length and width in a ratio of 4:1. What are the length and width?

Answers

Here, 4x * x = 324
Now, we need to calculate that unit of x value as follows:
4x * x = 324
4x² = 324
x² = 324/4
x² = 81
x = √81
x = 9
So, 4x = 4(9) = 36

So, dimensions of rectangle would be: 36 × 9

Hope this helps!