Need C++ Help, Making a menu?
Concerning an assignment for a college course during which I must produce a menu involving predetermined values to get a coffee shop.Then We need to setup for this program to increase the total for your customer.
Here’s what Concerning so far
#include
implementing namespace a sexually transmitted disease;
int main()
cout << "Welcome to help Coffeebucks! May perhaps I take your order" << endl;
cout << "Coffee" << endl;
cout << "C1) Standard $1.50" << endl;
float C1;
C1= JUST ONE.50;
cout << "C2) Decaf $1.25" << endl;
float C2;
C2= JUST ONE.25;
cout << "C3) Americano $2.25" << endl;
float C3;
C3= TWO.25;
cout << "C4) Coffee beans $2.25" << endl;
float C4;
C4= TWO.25;
cout << "C5) Latte $2.50" << endl;
float C5;
C5= TWO.50;
cout << "C6) Cappuccino $2.75" << endl;
float C6;
C6= TWO.75;
cout << "C7) Frappuccino $2.75" << endl;
float C7;
C7= TWO.75;
cout << "C8) Macchiato $2.50" << endl;
float C8;
C8= TWO.50;
cout << "Snacks" << endl;
cout << "S1) Bare Muffin $1.00" << endl;
float S1;
S1= JUST ONE.00;
cout << "S2) Blueberry Muffin $1.25" << endl;
float S2;
S2= JUST ONE.25;
cout << "S3) Raspberry Muffin $1.25" << endl;
float S3;
S3= JUST ONE.25;
cout << "S4) Bare Scone $0.75" << endl;
float S4;
S4= 0.SEVENTY-FIVE;
cout << "S5) Blueberry Scone $1.00" << endl;
float S5;
S5= JUST ONE.00;
cout << "S6) Croissant $0.75" << endl;
float S6;
S6= 0.SEVENTY-FIVE;
float coffeeOrder1;
cout << "Please enter a product you would likely like" << endl;
cin >> coffeeOrder1;
float coffeeTotal;
coffeeTotal= coffeeOrder1;
cout << "Your entire is" << endl;
cout<< coffeeTotal << endl;
cout << "Thank Everyone for picking Hunterbucks.Possess a fantastic time! " << endl;
give back 0;
Whenever WHEN I execute this promotion, I get yourself a weird selection with a handful of exponents.
Please level me inside the right direction
What do you think you’re inputting with the response to help “Please enter something you might like” For the reason that you’re reading in to a float, you will be putting from a number, preferably using a decimal stage.If you’re investing in, say, “S4”, it’s not going to visit into coffeeOrder1 because it isn’t the appropriate type.CoffeeOrder1 will remain whatever it was before and go away that through to coffeeTotal.
Desire that assists.
Leave a Reply
You must be logged in to post a comment.