Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started