Question: Write a complete program in C++ only Define a struct for a drink order and the struct will contain a string for the drink name

Write a complete program in C++ only

Define a struct for a drink order and the struct will contain a string for the drink name (Columbian, French Roast, Italian Blend, or House), a float for the cost, an integer for the strength (1-light, 2-medium, 3-dark), an int for the amount of sugar (0-none, 1, 2, 3, 4), a bool for cream or not cream.

Declare an instance for the struct. Next, ask for user to input the drink name, and then all of the other information. All of the information will be stored in the appropriate attributes of the struct. After the user enters all of the information for an order, the program should then output the information to the screen in neat tabular form.

Have the program continue to loop and take in information and print information until the user chooses to quit

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!