Question
Create an Inventory class to be used in online shopping application. The class must keep inventory and prices for three types of products: shampoo, conditioner,
Create an Inventory class to be used in online shopping application.
The class must keep inventory and prices for three types of products: shampoo, conditioner, and gel. Prices are in reward points.
Upon request, it should display the number of products of each kind that can be purchased by a customer based on their points.
Inventory class can receive requests to purchase different product types. Each purchase method receives the customers number of points and a desired product quantity. The method must return the customers remaining number of points after purchase. Upon every sale, appropriate inventory must be updated and displayed as well as customer purchase options.
In the Main method prompt the user to enter the number of points, then display the inventory and the users purchase options. Main method should make a purchase of each kind of product.
Must have 2 separate classes. (The main and inventory class)
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