1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Alex17521 [72]
3 years ago
15

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 startingpennies = 1 and userdays = 10, then with startingpennies = 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.
Computers and Technology
1 answer:
Rudik [331]3 years ago
4 0
Int resultPennies = startingPennies;
for (int i = 0; i < userDays; i++) {
    resultPennies *= 2;
}
return resultPennies;


The above code should do. You will need to adapt this code to your desired language, as you never specified a language.
You might be interested in
What happens if i receive a text while my phone is off?
SIZIF [17.4K]
The text will post to your phone when it gets turned on
4 0
4 years ago
What term describes what an actor breaks when he addresses the audience directly from stage, like in Hamlet’s “to be or not to b
Dmitriy789 [7]
Breaking of the third wall.
if you were to be an actor on a stage and directly ask the audience a question, or making a statement that you as a character acknowledge that the character knows it is a play.
5 0
3 years ago
Read 2 more answers
Ms. Rogers wants to see the names of all the students who scored below 25 on the test. Which of these custom options will help h
photoshop1234 [79]
B Is less than because it says below

6 0
3 years ago
10) What is the BEST way to rewrite sentence (1) to make it more
givi [52]
I believe the answer is D. It makes more sense and is the most correct grammatically.

Hope this helped and pls mark as brainliest!

~ Luna
3 0
3 years ago
Read 2 more answers
Which telecommunications offering is a component of social media? A.)web conferencing
vichka [17]
I would say C. podcast??? not for sure
7 0
3 years ago
Read 2 more answers
Other questions:
  • A. When executing System.out.println(a1), the toString() method in the Object class is invoked.
    14·1 answer
  • PLEASE HELP ASAP
    10·2 answers
  • What is a specific naming convention important in regards to your file management system<br> ?
    7·1 answer
  • A _____ is a harmful program that resides in the active memory of a computer and duplicates itself. Select one: a. scareware b.
    7·1 answer
  • How does white balancing affect the images recorded by a camera?
    15·1 answer
  • What is the critical path?
    15·1 answer
  • Which method is used for resolving data dependency conflict by the compiler itself?
    6·1 answer
  • Similarities between inline css and internal css​
    6·1 answer
  • Which similar computer network components connect multiple devices?
    7·1 answer
  • El botón de layout se usa para <br>​
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!