I need to make a menu for my class assignment. It needs to be for different products. 1. read in an order of a customer of three items. each item to have a code. need to define a variable. prints a output with a random customer number.
correct price for each order or a message sorry we dont carry this order.
here is what I came up with so far. I am lost now
#include <iostream>
#include <string>
#include <cstdlib>
using namespace std;
int main()
{
float S,L,F,D;
total=0;
string mystring= "Welcome to Minter's Resturant";
cout << mystring << endl;
cout << "Enter S for Shrimp, L for Lobster, F for Fish, and D for Drink" << endl;
cout<< "Please enter order" << endl;
while ("S")
{ total= total+10.00;
}
else if ("L")
{ total=total+ 35.00;
}
else if ("F")
{total=total+ 6.00;
}
else if ("D")
{total=total+1. 00;
}
cout << "Thank you customer ( randl)" <<endl;
return 0;
}
correct price for each order or a message sorry we dont carry this order.
here is what I came up with so far. I am lost now
#include <iostream>
#include <string>
#include <cstdlib>
using namespace std;
int main()
{
float S,L,F,D;
total=0;
string mystring= "Welcome to Minter's Resturant";
cout << mystring << endl;
cout << "Enter S for Shrimp, L for Lobster, F for Fish, and D for Drink" << endl;
cout<< "Please enter order" << endl;
while ("S")
{ total= total+10.00;
}
else if ("L")
{ total=total+ 35.00;
}
else if ("F")
{total=total+ 6.00;
}
else if ("D")
{total=total+1. 00;
}
cout << "Thank you customer ( randl)" <<endl;
return 0;
}
Comment