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 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:
Day Pennies
$
$
$
$
$
$
$
$
$
The total salary for days is: $
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
