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.
First of all you will ask the user to enter the number of burgers he wants to order. Foreach burger
the user can only add one type of bun to the burger. Any number of cheeses, 1 item from the
category “turn up the taste”, maximum 3 from fresh’n it up and any number of sauces. If the user
presses 0 then you are going to skip that category (user can not skip “choose your bun” and “turn
up the taste”).
My Code:
#include<iostream>
using namespace std;
int main()
{
int burgers,bun,cheese,bill,taste,fresh=0,sauce,i=0;
float bunprice,cheeseprice,tasteprice,freshprice,sauceprice,j=1,k=1,l=1,totalcost;
cout<<"Welcome To The Burger Shop!\n";
cout<<"Enter The Amount Of Burgers You Want:\n";
cin>>burgers;
cout<<"Choose Your Bun:\n1.Toasted Brioche Style Bun\n2.Baker's Bun\n3.No Bun-Lettuce Wrap\n";
cin>>bun;
bunprice=bun*0.5;
cout<<"Make It Cheesy:\n";
cout<<"1.Cheddar Cheese\n2.Swiss Cheese\n3.Colby Jack Cheese\n4.McDonald's Classic Cheese\n5.Shaved Parmesan\n0.To Skip Or Stop\n";
do
{
cin>>cheese;
if(cheese==1 ||cheese==2 || cheese==3 || cheese==4 || cheese==5)
cheeseprice=l*0.5;
l++;
}while(cheese!=0);
cout<<"Turn Up The Taste:\n1.Rasher Bacon\n2.Crispy Bacon\n3.Egg\n4.Angus Beef Patty\n5.Guacamole\n6.Tortilla Strips\n7.Grilled Mushrooms\n8.Grilled Pineapple\n";
cin>>taste;
tasteprice=taste*1.2;