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)

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter5: Making Decisions
Section: Chapter Questions
Problem 4PE
icon
Related questions
Question

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)

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 5 images

Blurred answer
Knowledge Booster
Random Class and its operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT