Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C + + Retail Class Program Write a class called RetailItem that holds data about an item in a retail store. The class should have
CRetail Class Program
Write a class called RetailItem that holds data about an item in a retail store. The class
should have the following member variables:
Description ~ A string that holds a brief description of the item
unitsOnHand ~ an integer that holds the number of units currently in inventory
price ~ a double that holds an items retail price
reorderQuantity ~ in integer that holds the lowest quantity of units before the store
has to order more.
The class should have the following public member functions:
Default constructor Initializes all values to either or zero.
Nondefault constructor Accepts all values as arguments and initializes those
values
Mutator Functions Appropriate mutator functions that store values in
these member variables
Accessor Functions Appropriate accessor functions that return values in
these member variables
Create a program that contains a menu to allow the user to do the following:
Add an item to inventory
Display all items in inventory
Check to see if an item is in inventory.
Display only those items that need to be reordered
Update an item in inventory
Use an array of up to a constant value of inventory items in main Do not allow the
user to enter in more than the constant value. You must use const.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started