• API
• FAQ
• Tools
• Archive
SHARE
TWEET

# Untitled

a guest Jun 16th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
1. float mealMath(numberOfAdults, mealChoosing){
2.    //Rest of function
3. }
4.
7.             cout << "Now how many adults will there be?: ";
8.             cin >> totalAdults;
9.                 cout << "It seems there will be: " <<                      totalAdults << " Adults." << endl;
10.                     while(totalAdults < 1){
11.                         cout << "Sorry there has to be a minimum of 1 adult!" << endl;
12.                             cout << "How many adults: ";
13.                                 cin >>  totalAdults;
14.                     }
15.                     return 0;
16. }
17.
18. int numberOfKids(){
19.     int totalKids;
20.         cout << "Now how many Kids will there be?: ";
21.             cin >> totalKids;
22.                 cout << "It seems there will be: " <<   totalKids << " kids." << endl;
23.                     while(totalKids < 0){
24.                         cout << "Sorry there has   to be a minimum of 1 Kid!" << endl;
25.                             cout << "How many   Kids: ";
26.                             cin >>   totalKids;
27.                     }
28.                     return 0;
29.
30. float mealChoosing(){
31.     float cost;
32.         string mealChoise;
33.             cout << "   " << endl;
34.                 cout << "Now, What meal will you be    getting(D/S): ";
35.                     cin >> mealChoise;
36.                         if(mealChoise == "D"){
37.                             cout << "It seems you have selected the Deluxe Meal plan for everyone!" << endl;
38.                                 cost = 25.95;
39.                         }
40.                                     if(mealChoise == "S"){
41.                                         cout << "It seems you have selected the Standard Meal plan for everyone!" <<     endl;
42.                                             cost = 21.75;
43.                             }
44.                                                 cout << "   " << endl;
45.
46.                                                 return cost;
47. }
48.
49. "float total(){
50.    float totalBill;
51.      totalBill = numberOfAdults * mealChoosing;
52.        cout << totalBill;"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!

Top