Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

a. Construct a class definition to represent types of food. A type of food is classified as basic or prepared. Basic foods are further classified

image text in transcribed

a. Construct a class definition to represent types of food. A type of food is classified as basic or prepared. Basic foods are further classified as Dairy, Meat, Fruit, Vegetable or Grain. The services the class provides should be the capability to enter data for a new food, the capability to change data for a new food, and the capability to display existing data for a new food. b. Include the class definition created in a working C++program that asks the user to enter data for four food items and then displays the entered data. c. Modify the program written to include a menu that offers the user the following choices: 1. Add a food item 2. Modify a food item 3. Delete a food item 4. Exit this menu. Note that In response to the user's choice, the program should initiate an action to implement the choice

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_2

Step: 3

blur-text-image_step3

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

More Books

Students also viewed these Databases questions