Write a C++ code to develop a software for your burger shop that takes orders for a tasty burger from the user, in just 5 steps. Attached below is the menu that you are going to display to the user in a nice attractive format. User can only add one type of bun to the burger. Maximum two types of cheese, 1 item from the category “turn up the taste”, maximum 3 from fresh’N it up and 3 from the sauces. If the user presses 0 then you are going to skip that category (user cannot skip “choose your bun” and “turn up the taste”).Each element from the “choose your bun” costs .72$Each element from the “make it cheesy” costs .5$Each element from the “turn up the taste” costs 1.2$Each element from the “fresh’N it up” costs .2$Each element from the “get saucy” costs .3$After taking the input from the user. Total cost will be displayed for the burger in $.NOTE: This question should be attempted using switch and nested ifs.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter9: Records (struct)
Section: Chapter Questions
Problem 2PE
icon
Related questions
Question

Write a C++ code to develop a software for your burger shop that takes orders for a tasty burger from the user, in just 5 steps. Attached below is the menu that you are going to display to the user in a nice attractive format. User can only add one type of bun to the burger. Maximum two types of cheese, 1 item from the category “turn up the taste”, maximum 3 from fresh’N it up and 3 from the sauces. If the user presses 0 then you are going to skip that category (user cannot skip “choose your bun” and “turn up the taste”).
Each element from the “choose your bun” costs .72$
Each element from the “make it cheesy” costs .5$
Each element from the “turn up the taste” costs 1.2$
Each element from the “fresh’N it up” costs .2$
Each element from the “get saucy” costs .3$
After taking the input from the user. Total cost will be displayed for the burger in $.
NOTE: This question should be attempted using switch and nested ifs.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Reference Types in Function
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
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,