Write a program that calculates how much a person would earn over a period
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 how much 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 number of pennies.
2006-09-24
13:03:02
·
5 answers
·
asked by
Emily
1
in
Computers & Internet
➔ Programming & Design