5 Week)
COMIPIZo Loops
Assignment A
elements
Due Feb 21 by 11:59pm
Points 100
Submitting a file upload
File Types py
elements
es
es
5
e 365
Start Assignment
Available Jan 17 at 12am - May 7 at 11:59pm
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 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.
1. Prompt the user to enter the number of days.
2. For each day, calculate the daily salary (which is $2^{(day-1)}$ pennies).
3. Convert the daily salary from pennies to dollars.
4. Keep a running total of the salary.
5. Display the results using f strings in a table format.
6. Show the total pay at the end.