Computer Programming

posted by .

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 should display a table showing the salary for each day, and then show the total pay at the end of the period. The output should be displayed in dollar amount.

  • Computer Programming -

    I don't know how to do computer programming, but his/her salary for the 20th day would be $5,242.88.

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. math problem

    If I say I will give you a penny on the first day, 2 pennies on the second day, 4 pennies on the third day, and I just keep doubling and do this for a month, How much money would you have at the end of the month?
  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 calculates …
  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 days. …
  4. 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. …
  5. 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. …
  6. algebra 2

    if someone offers to pay you 1 penny on the first day, 2 pennies on the second day, 4 pennies on the third day, 8 pennies on the fourth day, 16 pennies on the fifth day ad so on. What is the first day on which your pay would be at …
  7. Computer Science

    Create a Raptor Flowchart that calculates the amount a person would earn over a period of time if his or her salary were five cents the first day, ten cents the second day, and so on doubling each day. Your program should: 1. Request …
  8. computer programming

    Create a Raptor Flowchart that calculates the amount a person would earn over a period of time if his or her salary were five cents the first day, ten cents the second day, and so on doubling each day. Your program should: 1. Request …
  9. Math

    Create a Raptor Flowchart that calculates the amount a person would earn over a period of time if his or her salary were five cents the first day, ten cents the second day, and so on doubling each day. Your program should: 1. Request …
  10. math

    calculate the amount a person would earn over a period of time if his or her salary were a penny the first day, two cents the second day, and so on doubling each day. Day Pay =============== 1 0.01000 2 0.02000 3 0.04000 4 0.08000 …

More Similar Questions