Flowchart of this C++ program, pleasee

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Flowchart of this C++ program, pleasee

 

#include <iostream>

#include <iomanip>

#include <string>

using namespace std;

int main()

{

 string name;

 string Month;

 string Bills, Personal, Transportation, Savings;

 int day, year;

 char dollar;

 dollar = '$';

 char percent;

 percent = '%';

 long double inc;

 long double sav;

 long double extra;

 long double TOTAL;

 double B, P, T, S;

 double Bpercent, Ppercent, Tpercent, Spercent;

 double MB, MP, MT, MS;

 

 cout << "A SIMPLE BUDGET PLANNER TO ORGANIZE YOUR FINANCES";

 cin.get();

 cout << "Enter your name: ";

 getline (cin, name);

 cout << " " << endl;

 cout << "Provide the details for the date today.\n";

 cout << "Press Enter to continue";

 cin.get();

 cout << " " << endl;

 cout << "Enter the Month : ";

 cin >> (cin, Month);

 cout << "Enter the day : ";

 cin >> (cin, day);

 cout << "Enter the year : ";

 cin >> (cin, year);

 cout << " " << endl;

 cout << fixed << showpoint;

 cout << setprecision(3);

 cout << "Your Monthly Income: "<< dollar;

 cin >> inc;

 

 cout << fixed << showpoint;

 cout << setprecision(3);

 cout << "Savings: "<< dollar;

 cin >> sav;

 

 cout << fixed << showpoint;

 cout << setprecision(3);

 cout << "Extra Income: " << dollar;

 cin >> extra;

 

 TOTAL = (inc + sav + extra);

 cout << "Total Cash = ";

 cout << TOTAL;

 cout << " " << endl;

 cin.ignore();

 cout << "Press Enter to continue";

 cin.get();

 cout << " " << endl;

 cout << "Based on your Total Cash, the program will budget your money" << endl;

 cout << "in terms of Bills, Personal, Transportation, and Savings." << endl;

 cout << "Press Enter to continue";

 cin.get();

 cout << " " << endl;

 cout << name << ", please make sure that the four(4) percentage/s that you" << endl;

 cout << " enter will sum up to 100." << endl;

 cout << "Press Enter to continue";

 cin.get();

 cout << " " << endl;

 cout << "Type the percentage you will dedicate on each budget." << endl;

 cout << "Press Enter to continue";

 cin.get();

 cout << " " << endl;

 cout << "Bills = " << percent;

 cin >> B;

 cout << "Personal = " << percent;

 cin >> P;

 cout << "Transportation = " << percent;

 cin >> T;

 cout << "Savings = " << percent;

 cin >> S;

 

 Bpercent = (B / 100);

 MB = (TOTAL * Bpercent);

 Ppercent = (P / 100);

 MP = (TOTAL * Ppercent);

 Tpercent = (T / 100);

 MT = (TOTAL * Tpercent);

 Spercent = (S / 100);

 MS = (TOTAL * Spercent);

 cout << " " << endl;

 cout << "Tabulating input datas..." << endl;

 cin.ignore();

 cout << " Done! Press Enter to Continue";

 cin.get();

 

 cout << " " << endl;

 

 cout << name <<"'s Budget " << "as of " << Month << " " << day << "," << year << ":" << endl;

 cout << "-------------------------------------------------------------------------------" << endl;

 cout << " Bills Personal Transportation Savings" << endl;

 cout << "-------------------------------------------------------------------------------" << endl;

 cout << setw(15) << Bills << setw(35) << Personal << setw(50) << Transportation << setw(65) << Savings << endl;

 cout << setw(17) << MB << setw(20) << MP

 << setw(25) << MT << setw(17) << MS << endl;

 return 0;

 

 

}

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY