Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using the following information, written in C++ please Retail Class Program Write a class called Retailltem that holds data about an item in a retail

using the following information, written in C++ please

image text in transcribed

Retail Class Program Write a class called Retailltem 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. Non-default 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: 1) Add an item to inventory 2) Display all items in inventory 3) Check to see if an item is in inventory. 4) Display only those items that need to be re-ordered 5) Update an item in inventory Use an array of up to a constant value of 20 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

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

Graph Databases New Opportunities For Connected Data

Authors: Ian Robinson, Jim Webber, Emil Eifrem

2nd Edition

1491930896, 978-1491930892

More Books

Students also viewed these Databases questions

Question

Question How are IRAs treated for state tax law purposes?

Answered: 1 week ago