Menu

[Solved] Output Entering Number 5 People S Name Item Number Structure File Txt Read Write File C Us Q37168545

A.) Design a class named Coffee with the following member variables ltem Number Item name-up to 10 kind Description , e Volum

The output when entering number 5 is the people’s name withtheir item number.

The structure of the file is .txt, read/write file,

C++, Using Microsoft Visual Studio

A.) Design a class named Coffee with the following member variables ltem Number Item name-up to 10 kind Description , e Volume Class Size Cost . Quantity . Total cost . Type . Toppings Write the appropriate accessor and mutator functions for these member variables and add any variables neeed to round out program. Create at two constructors and initialize per class Create a destructor Data should be stored in an file e Create an array of objects e Do not use pointers e Use an enumeration for at least one attribute/field Create a text based menu to perform the following functions which will loop until the user selects quit. 1. Enter “1” Coffee Choices ( from file) Enter “2” Pickup preference either curbside pickup or drive thru Enter “3” Purchase Enter “4” search for item to see if in available Enter “5” sort by name and display output to the screer Enter “6” to print Date purchased, items purchased etc. to screen (receipt) Enter “7” to print Date purchasèd, items purchased etc. to receipt file Enter “8” to Quit 4. 5. 6. 7. 8. Add any classes, variables or member functions as needed to round out your progra requirements above must be included Show transcribed image text A.) Design a class named Coffee with the following member variables ltem Number Item name-up to 10 kind Description , e Volume Class Size Cost . Quantity . Total cost . Type . Toppings Write the appropriate accessor and mutator functions for these member variables and add any variables neeed to round out program. Create at two constructors and initialize per class Create a destructor Data should be stored in an file e Create an array of objects e Do not use pointers e Use an enumeration for at least one attribute/field Create a text based menu to perform the following functions which will loop until the user selects quit. 1. Enter “1” Coffee Choices ( from file) Enter “2” Pickup preference either curbside pickup or drive thru Enter “3” Purchase Enter “4” search for item to see if in available Enter “5” sort by name and display output to the screer Enter “6” to print Date purchased, items purchased etc. to screen (receipt) Enter “7” to print Date purchasèd, items purchased etc. to receipt file Enter “8” to Quit 4. 5. 6. 7. 8. Add any classes, variables or member functions as needed to round out your progra requirements above must be included

Expert Answer


Answer to The output when entering number 5 is the people’s name with their item number. The structure of the file is .txt, read/w… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *