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.

To calculate the pay that doubles each day, you can use the formula for compound interest, which is given by:

Pay = initial_pay * (2^(days - 1))

Here, initial_pay is the starting salary (in this case 0.05), days is the number of days, and "^" denotes exponentiation.

Now, let's create a Raptor Flowchart to calculate the pay. Here's how it can be done:

1. Start
2. Initialize variables:
- initial_pay = 0.05
- total_pay = 0
- day = 1
3. Input the number of days from the user and store it in the variable "num_days"
4. Display the table headers: "Day" and "Pay"
5. Repeat the following steps until day becomes greater than num_days:
6. Calculate the pay for the current day using the formula:
- pay = initial_pay * (2^(day - 1))
7. Add the pay to the total pay: total_pay = total_pay + pay
8. Display the current day and pay in the table
9. Increment the day by 1: day = day + 1
10. Display the total pay
11. End

I hope this helps!