Question: Write a program that will help you keep an inventory of the items in your home. Examples of items would be TVs , appliances, jewelry,

Write a program that will help you keep an inventory of the items in your home. Examples of items would be TVs, appliances, jewelry, furniture, paintings, computers, etc. Essentially, anything of value. The following information should be kept about each item: type, model, price, year purchased. For example, here would be information kept about two TVs:
ITEM television
MODEL Visio5000
PRICE - $1000
YEAR 2000
ITEM television
MODEL Samsung100
PRICE - $500
YEAR 1995
Your program must meet the following requirements:
Define a struct, itemInfo, with the following members:
item (string)
model (string)
price (float)
year (int)
Define an array (or vector) items of 10 itemInfo
Define the following functions:
displayMenu()- displays the menu
inputItems()- prompts the user for how many to enter and then inputs new items
displayItems()- displays all the items on the screen
findItem()- prompts the user for a model and either displays the information on the screen or indicates that it is not there
displayTotalValue()- displays the total value of all of the items
The program should loop until the user indicates that they want to quit.
NO GLOBALs except struct definitions and const.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!