Question & Answer: Draw a complete flowchart for the following C++ prog. :…..

Draw a complete flowchart for the following C++ prog. :

#include<iostream>
using namespace std;
int main()
{
double MYR,conv,ch,cont=1;
while(cont!=0)
{
cout<<“1.To Singapore dollar (SGD)n2.To United States Dollar (MYR)n3.To Australia Dollar (AUD)n4.Euro (EUR)n5.To India RupeenEnter choice : “;
cin>>ch;
if(ch>=1 && ch<=5)
{
cout<<“Enter Malaysia Ringgit (MYR) amount : “;
cin>>MYR;
if(MYR!=0)
{
if(ch==1)
conv=MYR*0.32;
else if(ch==2)
conv=MYR*0.23;
else if(ch==3)
conv=MYR*0.29;
else if(ch==4)
conv=MYR*0.20;
else if(ch==5)
conv=MYR*14.89;
cout<<“converted value is : “<< conv <<endl;
}
else if(MYR==0)
cout<<“Enter non-zero value.”;
}
if(ch<1 || ch>5)
cout<<“Wrong choice.n”;
cout<<“Do you want to continue?(1->YES || 0->NO) : “;
cin>>cont;
cout<<“n”;
}
}

Expert Answer

 

Still stressed from student homework?
Get quality assistance from academic writers!