Create a flowchart that is attached below.     #include  #include  #include using namespace std;      int main ()  {  float b,h,r,x,y,PI;  int choice;  char ans='N'; do { cout<<"                                                                         Calculator                     \n\n";    cout<<"Operations\t"<<"\tTrigonometric Functions\t"<<"\tUnit Conversion\t"<<"\tArea\t"<<"\tLogarithmic Functions"<<"\t\tSystem of linear Equation \n\n";   cout<<"1: Addition\t\t"<<"7: Sin\t\t"<<"\t\t13: Km to m\t"<<"\t19: Triangle\t"<<"23: Ln\t\t"<<"\t\t25: 1 Variable"<>choice;  PI=3.14159265;  { switch(choice)  {  case 1:  cout<<"\nEnter 1st number : ";  cin>>x;  cout<<"\nEnter 2nd number : ";  cin>>y;  cout<<"\nSum = "<>x;  cout<<"\nEnter 2nd number : ";  cin>>y;  cout<<"\nDifference = "<>x;  cout<<"\nEnter 2nd number : ";  cin>>y;  cout<<"\nProduct = "<>x;  cout<<"\nEnter 2nd number : ";  cin>>y;  cout<<"\nQuotient = "<>x;  cout<<"\nEnter the exponent : ";  cin>>y;  cout<<"\nExponent = "<>x;  cout<<"\nSquare Root = "<>x;  cout<<"\nSin = "<>x;  cout<<"\nCos = "<>x;  cout<<"\nTan = "<>x;  cout<<"\nInverse of Sin = "<>x;  cout<<"\nInverse of Cos = "<>x;  cout<<"\nInverse of tan = "<>x; cout<<"\nThe conversion from: "<>x; cout<<"\nThe conversion from: "<>x; cout<<"\nThe conversion from: "<>x; cout<<"\nThe conversion from: "<>x; cout<<"\nThe conversion from: "<>x; cout<<"\nThe conversion from: "<> b; cout << "\nInput the Height of the Triangle: "; cin >> h; cout << "\nThe Area of the Triangle is: " <<0.5*b*h<> b; cout << "\nInput the width of the Rectangle: "; cin >> h; cout << "\nThe Area of the Rectangle is: " <> r; cout << "\nThe Area of the Circle is: " <> b; cout << "\nThe Area of the Square is: " <>x;  cout<<"\nLn = "<>x;  cout<<"\nLog = "<> a;              cout<< "\nb:";         cin>> b;           cout<< "\nc:";         cin>> c;           cout<< "\nd:";         cin>> d;       cout<< "\nInsert the values of a2, b2, c2, and d2 in the second equation ax^2 + bx + c = d" <> a2;              cout<< "\nb2:";         cin>> b2;           cout<< "\nc2:";         cin>> c2;           cout<< "\nd2:";         cin>> d2;       cout<< "\nThe value between the difference of the two equations is\n";     cout<< "\n(" << a-a2 << ")x^2 + (" << b-b2 << ")x + (" << c-c2 <<  ") = (" << d-d2 << ")"<> ans;       }     while ((ans == 'Y') || (ans == 'y')); }

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
Create a flowchart that is attached below.
 
 
#include<iostream> 
#include<math.h> 
#include <string>
using namespace std; 
 
 
int main () 
float b,h,r,x,y,PI; 
int choice; 
char ans='N';
do
{
cout<<"                                                                         Calculator                     \n\n"; 
 
cout<<"Operations\t"<<"\tTrigonometric Functions\t"<<"\tUnit Conversion\t"<<"\tArea\t"<<"\tLogarithmic Functions"<<"\t\tSystem of linear Equation \n\n";  
cout<<"1: Addition\t\t"<<"7: Sin\t\t"<<"\t\t13: Km to m\t"<<"\t19: Triangle\t"<<"23: Ln\t\t"<<"\t\t25: 1 Variable"<<endl; 
cout<<"2: subtraction\t\t"<<"8: Cos\t\t"<<"\t\t14: M to cm\t"<<"\t20: Rectangle\t"<<"24: Log"<<endl; 
cout<<"3: Multiplication\t"<<"9: Tan\t\t"<<"\t\t15: Cm to mm\t"<<"\t21: Circle\t"<<endl; 
cout<<"4: Division\t\t"<<"10: Inverse of Sin"<<"\t\t16: M to ft\t"<<"\t22: Square\t"<<endl; 
cout<<"5: Exponent\t\t"<<"11: Inverse of Cos"<<"\t\t17: M to in\t"<<endl; 
cout<<"6: Square root\t\t"<<"12: Inverse of Tan"<<"\t\t18: M to yd\n\n"; 
cout<<"Enter the function that you want to perform : "; 
cin>>choice; 
PI=3.14159265; 
{
switch(choice) 
case 1: 
cout<<"\nEnter 1st number : "; 
cin>>x; 
cout<<"\nEnter 2nd number : "; 
cin>>y; 
cout<<"\nSum = "<<x+y<<endl; 
break; 
case 2: 
cout<<"\nEnter 1st number : "; 
cin>>x; 
cout<<"\nEnter 2nd number : "; 
cin>>y; 
cout<<"\nDifference = "<<x-y<<endl; 
break; 
case 3: 
cout<<"\nEnter 1st number : "; 
cin>>x; 
cout<<"\nEnter 2nd number : "; 
cin>>y; 
cout<<"\nProduct = "<<x*y<<endl; 
break; 
case 4: 
cout<<"\nEnter 1st number : "; 
cin>>x; 
cout<<"\nEnter 2nd number : "; 
cin>>y; 
cout<<"\nQuotient = "<<x/y<<endl; 
break; 
case 5: 
cout<<"\nEnter the number : "; 
cin>>x; 
cout<<"\nEnter the exponent : "; 
cin>>y; 
cout<<"\nExponent = "<<pow(x,y)<<endl; 
break; 
case 6: 
cout<<"\nEnter the number : "; 
cin>>x; 
cout<<"\nSquare Root = "<<sqrt(x)<<endl; 
break; 
case 7: 
cout<<"\nEnter the number : "; 
cin>>x; 
cout<<"\nSin = "<<sin(x)<<endl; 
break; 
case 8: 
cout<<"\nEnter the number : "; 
cin>>x; 
cout<<"\nCos = "<<cos(x)<<endl; 
break; 
case 9: 
cout<<"\nEnter the number : "; 
cin>>x; 
cout<<"\nTan = "<<tan(x)<<endl; 
break; 
case 10: 
cout<<"\nEnter the number : "; 
cin>>x; 
cout<<"\nInverse of Sin = "<<asin(x)*180.0/PI<<endl; 
break; 
case 11: 
cout<<"\nEnter the number : "; 
cin>>x; 
cout<<"\nInverse of Cos = "<<acos(x)*180.0/PI<<endl; 
break; 
case 12: 
cout<<"\nEnter the number : "; 
cin>>x; 
cout<<"\nInverse of tan = "<<atan(x)*180.0/PI<<endl; 
break;
case 13:
cout<<"\nEnter the number : ";
cin>>x;
cout<<"\nThe conversion from: "<<x<<"km to m is "<<x*1000<<"m"<<endl;
break;
case 14:
cout<<"\nEnter the number : ";
cin>>x;
cout<<"\nThe conversion from: "<<x<<"m to cm is "<<x*100<<"cm"<<endl;
break;
case 15:
cout<<"\nEnter the number : ";
cin>>x;
cout<<"\nThe conversion from: "<<x<<"cm to mm is "<<x*10<<"mm"<<endl;
break;
case 16:
cout<<"\nEnter the number : ";
cin>>x;
cout<<"\nThe conversion from: "<<x<<"m to ft is "<<x*3.28024<<"ft"<<endl;
break;
case 17:
cout<<"\nEnter the number : ";
cin>>x;
cout<<"\nThe conversion from: "<<x<<"m to in is "<<x*39.3701<<"in"<<endl;
break;
case 18:
cout<<"\nEnter the number : ";
cin>>x;
cout<<"\nThe conversion from: "<<x<<"m to yd is "<<x*1.09361<<"yd"<<endl;
break;
case 19:
cout << "\nInput the Base of the Triangle: ";
cin >> b;
cout << "\nInput the Height of the Triangle: ";
cin >> h;
cout << "\nThe Area of the Triangle is: " <<0.5*b*h<<endl;
break;
case 20:
cout << "\nInput the length of the Rectangle: ";
cin >> b;
cout << "\nInput the width of the Rectangle: ";
cin >> h;
cout << "\nThe Area of the Rectangle is: " <<b*h<<endl;
break;
case 21:
cout << "\nInput the radius of the Circle: ";
cin >> r;
cout << "\nThe Area of the Circle is: " <<r*r*PI<<endl;
break;
case 22:
cout << "\nInput the side of the Square: ";
cin >> b;
cout << "\nThe Area of the Square is: " <<b*b<<endl;
break;
case 23: 
cout<<"\nEnter the number : "; 
cin>>x; 
cout<<"\nLn = "<<log(x)<<endl; 
break; 
case 24: 
cout<<"\nEnter the number : "; 
cin>>x; 
cout<<"\nLog = "<<log10(x)<<endl; 
break;
case 25:
    float a, b, c, d, a2, b2, c2, d2;
 
    cout<< "\nInsert the values of a, b, c, and d in the equation ax^2 + bx + c = d" <<endl;
    
        cout<< "\na:";
        cin>> a;
    
        cout<< "\nb:";
        cin>> b;
 
        cout<< "\nc:";
        cin>> c;
 
        cout<< "\nd:";
        cin>> d;
 
    cout<< "\nInsert the values of a2, b2, c2, and d2 in the second equation ax^2 + bx + c = d" <<endl;
 
        cout<< "\na2:";
        cin>> a2;
    
        cout<< "\nb2:";
        cin>> b2;
 
        cout<< "\nc2:";
        cin>> c2;
 
        cout<< "\nd2:";
        cin>> d2;
 
    cout<< "\nThe value between the difference of the two equations is\n";
    cout<< "\n(" << a-a2 << ")x^2 + (" << b-b2 << ")x + (" << c-c2 <<  ") = (" << d-d2 << ")"<<endl;
break;
default:
cout<<"Goodbye"<<endl; 
}
}
cout << "Do you want to continue (Y/N)?\n";
    cout << "You must type a 'Y' or an 'N' :";
    cin >> ans;
 
    }
    while ((ans == 'Y') || (ans == 'y'));
}
Expert 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