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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started