Question: C++ (add comments please) 9. (Program) a. Construct a class definition to represent types of food. A type of food is classified as basic or
C++ (add comments please)
9. (Program) 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 class should provide these services: 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 for Exercise 9a in a working C++ program that asks the user to enter data for four food items and then displays the entered data.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
