Question: 5 Week ) CUIVIT 1 ? 0 LUOPS Assignment Due Feb 2 1 by 1 1 : 5 9 pm Submitting a file upload Available
Week
CUIVIT LUOPS
Assignment
Due Feb by :pm
Submitting a file upload
Available Jan at am May at : pm
Create a variable "student" and assign your name to this variable.
Design a program that calculates the amount of money a person would earn over a period of time if his or her salary is one penny the first day, two
pennies the second day, and continues to double each day. The program should ask the user for the number of days. Display a table, using strings, showing what the salary was for each day, and then show the total pay at the end of the period. The output should be displayed in a dollar amount, not the number of pennies.
Prompt the user to enter the number of days.
For each day, calculate the daily salary which is pennies
Convert the daily salary from pennies to dollars.
Keep a running total of the salary.
Display the results using strings in a table format.
Show the total pay at the end.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
