Complete the following tasks:
A) Design a Meal class with two fields- one that holds the name of the entree, the other that holds a calorie count integer. Include a constructor that sets a Meal's fields with arguments, or uses default vales when no arguements are provided.
B) Include a overloaded insertion operator function that displays a Meal's values
C) Include a overloaded extraction operator that promts a user for an entree name and calorie count for a meal
D) Include an overloaded operator+() function that allows you to add two or more Meal objects. Adding two Meal objects means adding theie calorie values and creating a summery Meal object in which you store "Daily Total" in the entree field.
E) Write a main () program that declares four Meal objects named breakfast, lunch, dinner, and total. Provide values for the breakfast, lunch, and dinner objects. Incude the statement TOTAL = BREAKFAST + LUNCH = DINNER; in your program, then display values for the four Meal objects.
F) Write a main() program that declares an array of 21 Meal objects. Allow a user to enter values for 21 meals for the week. Total these meals and display calorie total for the end of the week.
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request.
3) Exclusive and complete copyrights to all work purchased. (No GPL, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site).
Microsoft C++ Object oriented style of programming