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. 👍 2
  2. 👎 1
  3. 👁 1,463
  1. It looks like it should work.

    1. 👍 0
    2. 👎 1
  2. well i need help with the desk check as well to test it

    1. 👍 0
    2. 👎 1

Respond to this Question

First Name

Your Response

Similar Questions

  1. Math

    Are these correct ?. My grade counts on this and I'm not the best at math. I. Interest is ____?. (1pt) a. The amount of money your bank pays you for the use of only your money. b. The amount you might pay for a loan. * c. A

  2. Pseudocode

    Write pseudocode for a program that calculates a customer’s total price after tax. The program will ask the user for the price of the item they are buying. Then the program will add a 5% tax to the item and output the final

  3. programming

    create the logic for a program that calculates and displays the amount of money you would have if you invested $5000 at 2 percent simple interest for one year. create a separate method to do the calculation and return the result

  4. Programming concepts

    Develop a menu-driven program that inputs two numbers and, at the user’s option, finds their sum, difference, product, or quotient. top-down modular approach and pseudocode to design a suitable program to solve it. I am having

  1. computer programming

    Design the pseudocode for a program that allows a user to enter 10 numbers, then displays them in the reverse order of their entry

  2. C++

    // Program: name of program // Author: your name // Date Written: date you began writing the program /* Abstract: Brief description of the program */ Include in-line comments in the body of your program. You can convert

  3. programming logic and design

    I need help writing pseudocode for this problem: Design a retirement planning calculator for skulling financial services • Allow a user enter a number of working years remaining in the user career and the annual amount of money

  4. Computer science

    need help how do this program. Use the top-down modular approach and pseudocode to design a suitable program to solve it. Alberta Einstein teaches a business class at Podunk University. To evaluate the students in this class, she

  1. Programming and Design

    Draw the hierarchy chart and design the logic for a program that calculates the projected cost of an automobile trip. Assume that the user's car travels 20 miles per gallon of gas. Design a program that prompts the user for a

  2. Computer Programing & Logic Design

    Submit pseudocode and a flowchart for the following programming exercise: Test Average and Grade Write a program that asks the user to enter five test scores. The program should display a letter grade for each score and the

  3. Programing Logic and design

    Design a program that asks the user to enter a store's sales for each day of the week. The amounts should be stored in an one dimensional array. use loop to calculate the total sales for the week and display the results. (In

  4. math

    The equation y = 12x describes the amount of money Louis earns, where x is the number of hours he works and y is the amount of money he earns. The table shows the amount of money Carl earns for different numbers of hours worked.

You can view more similar questions or ask a new question.