Asked by Allison
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
Section 5.6 in "Starting Out With C++" gives a C++ example for displaying a table.
Section 5.7 discusses the use of an accumulator within a loop.
Once your Raptor flowchart executes correctly, upload your .rap file. Make sure your
name and assignment are on the flowchart in a comment.
Sample Output (inputs in bold)
Please enter the number of days you will be working? 5
Day Pay
===============
1 0.05000
2 0.10000
3 0.2000
4 0.4000
5 0.8000
Your total pay is 1.5500
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
Section 5.6 in "Starting Out With C++" gives a C++ example for displaying a table.
Section 5.7 discusses the use of an accumulator within a loop.
Once your Raptor flowchart executes correctly, upload your .rap file. Make sure your
name and assignment are on the flowchart in a comment.
Sample Output (inputs in bold)
Please enter the number of days you will be working? 5
Day Pay
===============
1 0.05000
2 0.10000
3 0.2000
4 0.4000
5 0.8000
Your total pay is 1.5500
Answers
There are no human answers yet.
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.