//main body
intmain()
{
std::string pizza_type;
char size;
std::cout<"welcome to="" freddy's="">"welcome>\n\n";
std::cout<"pizza>"pizza>\n";
std::cout<>\t1- Vegetarian Pizza\n";
std::cout<>\t2- Chicken Dynamite Pizza\n";
std::cout<>\t3- Vegetarian Lovers Pizza\n";
std::cout<>\nWhich Pizza would you like to try?\t";
getline(std::cin,pizza_type);
std::cout<>\nWhat size of pizza would you like (L,M,S)?\t\t";
std::cin>>size;
if(size=='L'||size=='M'||size=='S') //checking the selection order of pizza size
{
if(strcmp(pizza_type.c_str(),"Vegetarian")==0) //chceking the selection order of pizza type
{ std::cout<>\n\nPizza Order:\n";
std::cout<>\nPizza Name:"<>
std::cout<>\nPreparation Time:20 Minutes\n";
std::cout<>\nCalories:25\n";
if(size=='L')
std::cout<>\nPizza Price:4 OMR\n";
elseif(size=='M')
std::cout<>\nPizza Price:3 OMR\n";
else
std::cout<>\nPizza Price:2 OMR\n";
std::cout<>\nToppings:\n";
std::cout<>\nOnion,Green paper,Olives,Sweet Corn and Mushrooms";
}
elseif(strcmp(pizza_type.c_str(),"Chicken Dynamite")==0) //chceking the selection order of pizza type
{
std::cout<>\n\nPizza Order:\n";
std::cout<>\nPizza Name:"<>
std::cout<>\nPreparation Time:20 Minutes\n";
std::cout<>\nCalories:150\n";
if(size=='L')
std::cout<>\nPizza Price:7 OMR\n";
elseif(size=='M')
std::cout<>\nPizza Price:5 OMR\n";
else
std::cout<>\nPizza Price:3 OMR\n";
std::cout<>\nToppings:\n";
std::cout<>\nGrilled Chicken,Cheese,Raunch Sauce,Jalapenos";
}
elseif(strcmp(pizza_type.c_str(),"Meat Lovers")==0) //chceking the selection order of pizza type
{ std::cout<>\n\nPizza Order:\n";
std::cout<>\nPizza Name:"<>
std::cout<>\nPreparation Time:20 Minutes\n";
std::cout<>\nCalories:250\n";
if(size=='L')
std::cout<>\nPizza Price:8 OMR\n";
elseif(size=='M')
std::cout<>\nPizza Price:6 OMR\n";
else
std::cout<>\nPizza Price:4 OMR\n";
std::cout<>\nToppings:\n";
std::cout<>\nMinced Meat,Cheese,BBQ Sauce,Fresh Tomatos";
}
else //if the selection order is wrong
std::cout<"wrong>"wrong>
}
else //if the selection order is wrong
std::cout<"wrong>"wrong>
getch();
return0;
}
Extracted text: > clang++-7 -pthread -std=c++17 -o main main.cpp main.cpp:5:9: fatal error: 'conio.h' file not found #include 1 error generated. compiler exit status 1
Extracted text: > clang++-7 -pthread -std=c++17 -o main main.cpp > ./main Welcome to Freddy's Pizza Pizza Menu: 1- Vegetarian Pizza 2- Chicken Dynamite Pizza 3- Vegetarian Lovers Pizza Which Pizza would you like to try? 2 What size of pizza would you like (L,M, S) ? wrong selection: L bash: L: command not found