Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I have been stuck on this problem in my software design class and I hate going in these places and looking stupid but my professor had a family emergency and my homework is due tomorrow night.
Design a program in pseudocode that calculates the amount of money a person would earn over a period of time if their salary is one penny the first day, and then doubles each day. The program should ask the user for the number of days. Display what the salary was for each day, and then show the total pay for the end of the period. The output should be displayed in dollar amount, not number of pennies.

The program should ask the user for the number of days.
their salary is one penny the first day,
then [his salary] doubles each day.
calculates the amount of money
The output should be displayed in dollar amount, not number of pennies.
Display what the salary was for each day,
show the total pay for the end of the period.There, I reordered the statements. Now what are the individual steps for each part?

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |