Programming

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.

I have the code but i do not know if it works PLEASE HELP!!!!!:

Declare Integer days, counter = 1
Declare Real penny = 1, salary, total + 0

Display "Enter a number of days."
Input days
Display "Days",TAB,"Salary"

While counter<= days

Set salary = penny/100

Display counter, TAB, salary

Set penny = penny * 2
Set counter = counter + 1
Set total = total + salary
End While

Display "The total of your payment is$," total

  1. 0
  2. 14
asked by Ant
  1. It looks like it should work.

    1. 0
    posted by Marth
  2. well i need help with the desk check as well to test it

    1. 0
    posted by Ant

Respond to this Question

First Name

Your Response

Similar Questions

  1. Programming

    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
  2. programming

    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
  3. Programming

    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
  4. programming

    You have the final sales figures for the four quarters in 2010 for Bennets Used Auto Sales, and you are to design a program that asks for the sales figures, computes the total sales for the year, and calculates and displays the
  5. Computer Programming

    I must write a program using Java that calculates the amount 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
  6. programming

    Design a program that calculates and displays the amount of money you would have if you invest $5000.00 at 2 percent simple interest for one year. call a function and pass the needed data to do the calculation and return the
  7. Programming

    Language - PYTHON Design a program that calculates the total amount of a meal purchased at a restaurant. The program should ask the user to enter the charge for the food, and then calculate the amount of a 15% tip and 7% sales
  8. Programming

    Design a program that calculates the total amount of a meal purchased at a restaurant. The program should ask the user to enter the charge for the food, and the calculate the amount of a 15 percent tip and 7 percent sales tax.
  9. CIS Design and Programming

    Design a program that calculates the total amount of a meal purchased at a restaurant. The program should ask the user to enter the charge for the food, and then calculate the amount of a 15 percent tip and a 7 percent sales tax.
  10. Computer Programming Design

    I really need someone to help me with this.I post this last week and I did not respond to it hopefully someone will respond Design a program that calculates the total amount of a meal purchased at a restaurant. The program should

More Similar Questions