Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Create a Raptor Flowchart that calculates the amount a person would carn over a

ID: 3908686 • Letter: C

Question

Create a Raptor Flowchart that calculates the amount a person would carn over a period of time if his or her salary were twenty cents the first day, forty cents the second day, and so on doubling each day Your program should: I. 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 0.200000 0.400000 0.800000 1.600000 3.200000 Your total pay is $6.20000

Explanation / Answer

ScreenShot

---------------------------------------------------------------------------------

Output and c++ program

----Reset----
Day              Pay
-------------------------------------------------
1                0.2000
2                0.4000
3                0.8000
4                1.6000
5                3.2000
Your total pay is $6.2000

-------------------------

#include <iostream>
#include <string>

using namespace std;
int main()
{
   string raptor_prompt_variable_zzyz;
   ?? total;
   ?? numdays;
   ?? i;
   ?? salary;

   raptor_prompt_variable_zzyz ="Please enter the number of days you will be working?";
   cout << raptor_prompt_variable_zzyz << endl;
   cin >> numdays;
   cout << "Day              Pay" << endl;   cout << "-------------------------------------------------" << endl;   i =0;
   salary =0.2;
   total =0;
   while (!(i>=numdays))
   {
      cout << i+1+"                                    "+salary << endl;      i =i+1;
      total =total+salary;
      salary =salary+salary;
   }
   cout << "Your total pay is $"+total << endl;
   return 0;