Write a program in C++ to handle the following scenario: Hungry Pizza has following price list for different type of pizza. Flavor Small Medium Large Extra Large BBQ RS 500 RS 800 RS 1100 RS 1600 Smoked RS 550 RS 850 RS 1150 RS 1650 Grilled RS 600 RS 900 RS 1300 RS 1900 Macaroni And Cheese RS 750 RS 950 RS 1050 RS 1850 Cantaloupe And Sweet Ricotta RS 800 RS 980 RS 1100 RS 2000 Butter Lobster RS 450 RS 1000 RS 1200 RS 1600 You have to display following menu Enter B for BBQ Pizza Enter S for Smoked Pizza Enter G for Grilled Pizza Enter M for Macaroni and cheese Enter C for Cantaloupe Enter X for Butter Lobster After a valid input from above choices display following menu Enter S for Small Enter M for Medium Enter L for Large Enter X for Extra Large After a valid input ask quantity to be purchased, then calculate the bill, if the customer bill is greater than 5000, provide 2% discount. At the end print the bill to be paid by the customer. Note: Inputs for both menus is not case sensitive (user can either enter uppercase or lower case value)
Write a program in C++ to handle the following scenario: Hungry Pizza has following price list for different type of pizza.
Flavor |
Small |
Medium |
Large |
Extra Large |
BBQ |
RS 500 |
RS 800 |
RS 1100 |
RS 1600 |
Smoked |
RS 550 |
RS 850 |
RS 1150 |
RS 1650 |
Grilled |
RS 600 |
RS 900 |
RS 1300 |
RS 1900 |
Macaroni And Cheese |
RS 750 |
RS 950 |
RS 1050 |
RS 1850 |
Cantaloupe And Sweet Ricotta |
RS 800 |
RS 980 |
RS 1100 |
RS 2000 |
Butter Lobster |
RS 450 |
RS 1000 |
RS 1200 |
RS 1600 |
You have to display following menu
Enter B for BBQ Pizza
Enter S for Smoked Pizza
Enter G for Grilled Pizza
Enter M for Macaroni and cheese
Enter C for Cantaloupe
Enter X for Butter Lobster
After a valid input from above choices display following menu
Enter S for Small
Enter M for Medium
Enter L for Large
Enter X for Extra Large
After a valid input ask quantity to be purchased, then calculate the bill, if the customer bill is greater than 5000, provide 2% discount. At the end print the bill to be paid by the customer.
Note: Inputs for both menus is not case sensitive (user can either enter uppercase or lower case value)
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 5 images