Question: INFO Homework 1 - Pennies Per Day Write a program in PYTHON that calculates the amount of money a person would earn over a period

INFO Homework 1- Pennies Per Day
Write a program in PYTHON 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 the salary for each day. Then show
the total pay at the end of the period as a dollar amount, not the number of pennies.
Things to include:
Specific error checking to determine a correct number of days. A general method for checking.
Do not allow the user to enter more than 31 days.
Format all numbers over a thousand with commas.
Pattern the results table after the one below.
Enter the number of days: 25
The tatal salary for 25 days is: $335,544.31
Rubric
Things to be included:
Main Function
Variables
Specific Error Checking
General Error Checking
Allow for more then 31 days
Format the answer with commas
print the results in table form
make sure the calculaiton is correct
use a comment header
use comments throughout
 INFO Homework 1- Pennies Per Day Write a program in PYTHON

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!