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)

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education