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 the number of days.
2. Display a table showing what the salary is for each day
3. Display the total pay

Sample Output (inputs in bold)
Please enter the number of days you will be working? 5
Day Pay
===============
1 0.01000
2 0.02000
3 0.04000
4 0.08000
5 0.16000
Your total pay is 0.310000

MY QUESTION: I am having trouble finding a math equation that will double the pay for each day. I fiqured out how to get the sum and list the days but I just can't find a math formlua that will calculate the pay so that it will double each day; please help.

  1. 👍 0
  2. 👎 0
  3. 👁 425

Respond to this Question

First Name

Your Response

Similar Questions

  1. Social Studies

    The purpose of tomb paintings was to: A. Provide the buried person with the objects shown. B. Illustrate how much wealth the person buried possessed. C. Tell the story of the buried person's life.** D. Create a beautiful resting

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

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

  4. Maths

    A Man earns a salary of #2500 Per annum, If a rise of #500 is given at the end of the year, Find :(a) the total amount the man will earn in 18 years. (b) the amount the man will earn in the 20th year. Solve with an Arithmetic

  1. computer science

    I need help with my Java homework! Write a program that calculates a customer's monthly bill. It should ask the user to enter the letter of the package the customer has purchased (A, B, or C) and the number of hours that were

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

  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. Alg 1

    To earn a B in your Algebra class, you must achieve an unrounded test average between 84 and 86 (inconclusive). You scored 86,85, and 80 on the first three tests of the grading period. What possible scores can you earn on the

  1. math

    four people invested in a restaurant. one person invested $1000,000. two others invested in the ratio x:2x, and the fourth person invested an amount equal to the other three investors combined. the total investment was $1,100,000.

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

  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. mathematics

    Each week, Tina earns $x babysitting and receives $10 as her allowance. To find how much she will earn in total over 4 weeks, Tina calculates : x + 10 + x + 10 + x + 10 + x + 10 What is another way Tina can calculate how much she

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