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
Which type of programming language is understood directly by the computer? Assembly language Machine language Visual Basic Java
vlabodo [156]

"Machine Language"

is the answer you are looking for.
! ! ! !
V V V V

"Machine code or machine language is a set of instructions executed directly by a computer's central processing unit (CPU). Each instruction performs a very specific task, such as a load, a jump, or an ALU operation on a unit of data in a CPU register or memory."
3 0
4 years ago
If a database table is to hold data on 52 students it must have 52?
Marina CMI [18]

Answer:

yes

Explanation:

6 0
3 years ago
Choose the correct term to complete the sentence.
Diano4ka-milaya [45]

Answer:

Object-oriented programming

Explanation:

When used in object-oriented programming , a class is a factory for creating object. An object is a collection of data and behavaiors that represent some entity(real or abstract).

6 0
3 years ago
Characters of waste water​
scoundrel [369]

Answer:

ain characteristics of wastewater are classified below.

Physical Characteristics. · Turbidity. · Color. ...

Chemical Characteristics due to Chemical Impurities. · Chemical Oxygen Demand (COD) · Total Organic Carbon (TOC) ...

Biological Characteristics due to Contaminants. · Biochemical Oxygen Demand (BOD)

6 0
4 years ago
Read 2 more answers
Theresa is a certified teacher. She just had a baby and would like to stay home, but still wants to teach. Which career would be
vesna_86 [32]
I think it will be online classes (B.)
8 0
3 years ago
Read 2 more answers
Other questions:
  • CHALLENGE ACTIVITY 2.15.1: Reading and outputting strings. Write a program that reads a person's first and last names, separated
    11·1 answer
  • What is the name of the symbol that is used to classify and categorize information?​
    10·2 answers
  • Write a program that takes as input a number of kilometers and prints the corresponding number of nautical miles. Use the follow
    9·1 answer
  • Explain how a monitor can display the letters that you type on a keyboard. (Hint: Three Basic Computer Functions) *
    11·1 answer
  • Choose a simple way to let a VPN into your VPC continue to work in spite of routing changes.
    15·1 answer
  • Compose one paragraph (three to four sentences) explaining the difference between a courtesy copy and a blind courtesy copy (thi
    9·1 answer
  • What is the world first mobile phone brand​
    5·2 answers
  • Kathy would like to export a report that she created into an easy-to-use file format that is supported on multiple
    5·1 answer
  • Match each item with a statement below. - A popular port scanners that has the ability to use a GUI front end - Allows you to pi
    8·1 answer
  • Help me out-
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!