Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Paid_in_pennies.py You just got a job that will pay you in pennies! On your first day you get one penny, on the second you get
Paid_in_pennies.py You just got a job that will pay you in pennies! On your first day you get one penny, on the second you get two, on the third you get FOUR. It doubles each day! Write a program that calculates how much money you would earn over a specified number of days. The program should ask the user for the number of days worked. Then output to screen both what the salary was for each day, and the TOTAL pay you would earn at the end of the period worked. If you can outpu the amount as a dollar amount ($12.75, for example), that would be great! But I'll also accept an output that displays the dollar amount as a number of pennies (1275 pennies, for example). HINT: use a while-loop
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