Page 107 - Modular_V1.1_Flipbook
P. 107
case 2:
cout<<”Enter number of drinks: “;
cin>>number;
cost = cost + 90 * number;
cout<<”Thank you, You have ordered Apple Juice as your
drink.”<<endl;
break;
case 3:
cout<<”Enter number of drinks: “;
cin>>number;
cost = cost + 60 * number;
cout<<”Thank you, You have ordered Soda as your drink.”<<endl;
break;
case 4:
cout<<”Enter number of drinks: “;
cin>>number;
cost = cost + 30 * number;
cout<<”Thank you, You have ordered Tea as your drink.”<<endl;
break;
case 5:
exit(1);
default:
cout<<”Invalid choice. Please Try again.” <<endl;
goto label;
}
cout<<”Would you like to order something else? Y or N: “;
cin>>ch;
}
while(ch == ‘Y’);
cout<<”************ BILL ************\n”;
cout<<”Total bill is : “<<cost;
getch();
Critical Thinking
Project 5
Write a program in C++ to display the conversion of Celsius to Fahrenheit, Meters to Kilometers,
Centimeters to meters and Liters to Millimeters. The user can choose to perform one conversion
at a time through a menu type selection.
Project 6 Art Integration
Create an app ‘Food of India’ using App Inventor. This app will display the famous dishes around
India and give basic information about them.
Project Work 105

