Question: All python labs in this and subsequent chapters are to be written using a loop that keeps the program running until told to stop. learning

All python labs in this and subsequent chapters are to be written using a loop that keeps the program running until told to stop.
learning objectives
repetition structures
"while" loops
"for" loops.
counters
accumulators
running totals, sentinel values
Instructions
pennies for pay
write a python program that will perform the following:
-first day will pay someone one (1) penny
-second day will double the first day's pay
-third day will double the second day's pay
-fourth day will double the third day's pay
-continue this process for a specified number of days
-display the day count and each day's pay
the program will continue that process for the number of days specified by the user
after all the day's are displayed the program will display the total pay earned
the output will look something like the example below:
Enter the number of days to work: 9
Day Pennies
--------------------
1 $0.01
2 $0.02
3 $0.04
4 $0.08
5 $0.16
6 $0.32
7 $0.64
8 $1.28
9 $2.56
The total salary for 9 days is: $5.11
refer to python program grading rubric for coding requirements

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!