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


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 =""  =""  =""  =""  =""  =""  =""  =""  =""  ="">


cout<><"\ttrigonometric><"\tunit><><"\tlogarithmic><"\t\tsystem of="" linear="" equation="">

cout<"1:><"7:><"\t\t13: km="" to=""><"\t19:><"23:><"\t\t25: 1=""><>

cout<"2:><"8:><"\t\t14: m="" to=""><"\t20:><"24:><>

cout<"3:><"9:><"\t\t15: cm="" to=""><"\t21:><>

cout<"4:><"10: inverse="" of=""><"\t\t16: m="" to=""><"\t22:><>

cout<"5:><"11: inverse="" of=""><"\t\t17: m="" to=""><>

cout<"6: square=""><"12: inverse="" of=""><"\t\t18: m="" to="">

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 ==""><><>

break;

case 2:

cout<"\nenter 1st="" number="" :="">

cin>>x;

cout<"\nenter 2nd="" number="" :="">

cin>>y;

cout<"\ndifference ==""><><>

break;

case 3:

cout<"\nenter 1st="" number="" :="">

cin>>x;

cout<"\nenter 2nd="" number="" :="">

cin>>y;

cout<"\nproduct ==""><><>

break;

case 4:

cout<"\nenter 1st="" number="" :="">

cin>>x;

cout<"\nenter 2nd="" number="" :="">

cin>>y;

cout<"\nquotient ==""><>

break;

case 5:

cout<"\nenter the="" number="" :="">

cin>>x;

cout<"\nenter the="" exponent="" :="">

cin>>y;

cout<"\nexponent ==""><><>

break;

case 6:

cout<"\nenter the="" number="" :="">

cin>>x;

cout<"\nsquare root="<
break;

case 7:

cout<<" \nenter="" the="" number="" :="">

cin>>x;

cout<"\nsin ==""><><>

break;

case 8:

cout<"\nenter the="" number="" :="">

cin>>x;

cout<"\ncos ==""><><>

break;

case 9:

cout<"\nenter the="" number="" :="">

cin>>x;

cout<"\ntan ==""><><>

break;

case 10:

cout<"\nenter the="" number="" :="">

cin>>x;

cout<"\ninverse of="" sin="<
break;

case 11:

cout<<" \nenter="" the="" number="" :="">

cin>>x;

cout<"\ninverse of="" cos="<
break;

case 12:

cout<<" \nenter="" the="" number="" :="">

cin>>x;

cout<"\ninverse of="" tan="<
break;

case 13:

cout<<" \nenter="" the="" number="" :="">

cin>>x;

cout<"\nthe conversion="" from:=""><><"km to="" m="" is=""><><><>

break;

case 14:

cout<"\nenter the="" number="" :="">

cin>>x;

cout<"\nthe conversion="" from:=""><><"m to="" cm="" is=""><><><>

break;

case 15:

cout<"\nenter the="" number="" :="">

cin>>x;

cout<"\nthe conversion="" from:=""><><"cm to="" mm="" is=""><><><>

break;

case 16:

cout<"\nenter the="" number="" :="">

cin>>x;

cout<"\nthe conversion="" from:=""><><"m to="" ft="" is=""><><><>

break;

case 17:

cout<"\nenter the="" number="" :="">

cin>>x;

cout<"\nthe conversion="" from:=""><><"m to="" in="" is=""><><><>

break;

case 18:

cout<"\nenter the="" number="" :="">

cin>>x;

cout<"\nthe conversion="" from:=""><><"m to="" yd="" is=""><><><>

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:="" "=""><><>

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:="" "="">
break;

case 21:

cout < "\ninput="" the="" radius="" of="" the="" circle:="">

cin >> r;

cout < "\nthe="" area="" of="" the="" circle="" is:="" "=""><><>

break;

case 22:

cout < "\ninput="" the="" side="" of="" the="" square:="">

cin >> b;

cout < "\nthe="" area="" of="" the="" square="" is:="" "="">
break;

case 23:

cout<"\nenter the="" number="" :="">

cin>>x;

cout<"\nln ==""><><>

break;

case 24:

cout<"\nenter the="" number="" :="">

cin>>x;

cout<"\nlog ==""><><>

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""><>


        cout<>

        cin>> a;


        cout<>

        cin>> b;


        cout<>

        cin>> c;


        cout<>

        cin>> d;


    cout< "\ninsert="" the="" values="" of="" a2,="" b2,="" c2,="" and="" d2="" in="" the="" second="" equation="" ax^2="" +="" bx="" +="" c="d""><>


        cout<>

        cin>> a2;


        cout<>

        cin>> b2;


        cout<>

        cin>> c2;


        cout<>

        cin>> d2;


    cout< "\nthe="" value="" between="" the="" difference="" of="" the="" two="" equations="">

    cout< "\n("="">< a-a2="">< ")x^2="" +="" ("="">< b-b2="">< ")x="" +="" ("="">< c-c2=""><  ")="("">< d-d2=""><><>

break;

default:

cout<><>

}

}

cout < "do="" you="" want="" to="" continue="">

    cout < "you="" must="" type="" a="" 'y'="" or="" an="" 'n'="">

    cin >> ans;


    }

    while ((ans == 'Y') || (ans == 'y'));

}


Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here