Question: Programming Practice 4.2: Pennies for Pay 10 pts o Not Submitted Due Feb 16, 2020 at 11:59 PM Submission Types Text Entry or Website URL

 Programming Practice 4.2: Pennies for Pay 10 pts o Not Submitted
Due Feb 16, 2020 at 11:59 PM Submission Types Text Entry or
Website URL Submission & Rubric Description Lesson Objective(s): Use the range version

Programming Practice 4.2: Pennies for Pay 10 pts o Not Submitted Due Feb 16, 2020 at 11:59 PM Submission Types Text Entry or Website URL Submission & Rubric Description Lesson Objective(s): Use the range version of the for statement Set the field size in formatting money (review chapter 2 on formatting) Lesson: Write 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 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. Hint: use Range, set the field size in formatting. Assignment Requirements: Upload your .py file to Git Hub and submit the link to that file. Sample Result: How many days will you work for pennies a day? 15 Days Worked Amount Earned That Day - - - - - - - - - - - - - - - - - - - - - 1 $ 0.01 2 $ 0.02 3 $ 0.04 4 $ 0.08 51 0.16 6 $ 0.32 7 $ 0.64 8 $ 1.28 9 $ 2.56 10 $ 5.12 11 1 $ 10.24 12 | $ 20.48 13 1 $ 40.96 14 $ 81.92 15 1 $ 163.84 Total earned over 15 days is $ 327.67

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!