Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Programming With Visual Basic .NET

Authors: Carsten Thomsen

2nd Edition

1590590325, 978-1590590324

More Books

Students also viewed these Databases questions

Question

1. Which position would you take?

Answered: 1 week ago