Question: 5 Week ) CUIVIT 1 ? 0 LUOPS Assignment Due Feb 2 1 by 1 1 : 5 9 pm Submitting a file upload Available

5 Week)
CUIVIT 1?0 LUOPS
Assignment
Due Feb 21 by 11:59pm
Submitting a file upload
Available Jan 17 at 12 am - May 7 at 11:59 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
5
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 f 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 2(day-1) pennies).
Convert the daily salary from pennies to dollars.
Keep a running total of the salary.
Display the results using f strings in a table format.
Show the total pay at the end.
 5 Week) CUIVIT 1?0 LUOPS Assignment Due Feb 21 by 11:59pm

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!