Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ PROGRAM 1-Develop a class called WritingTools with properties such item price location and name. 2- create a new class called item more generic than

C++ PROGRAM

1-Develop a class called WritingTools with properties such item price location and name.

2- create a new class called item more generic than the first one you developed. It should include general characteristic for all items and other writing a color

3-You have added a new category called food. You already worked on WritingTools but you have inherit the propertie from item.

4-Create the new class for Food. It varies from WritingTools that the expirationdate and isrefrigerated is added

5- Use the concept of inheritance between item and writingTool and item and FoodItem

6-Each inheritance overloads the constructor of item, depending on the parameters sent.

7- The main menu now asks before entering an item if you want to enter food or WritingTools

8-Thinking task: how can I store both types? (think ahead to multiple item types)

Do a main: showing a menu :the rpogram have a menu of the following options:

Option 1- User selects too add a new item

Option 2-User selects the category to add the item(between food or writing toos)

Option 3-User Selects the category of the item

Option 4- User enters an item

hint: create two arrays from Class writingTools and class food to store the data asked to the user

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

Sams Teach Yourself Beginning Databases In 24 Hours

Authors: Ryan Stephens, Ron Plew

1st Edition

067232492X, 978-0672324925

More Books

Students also viewed these Databases questions