Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please write this in C++ with Classes. Please write the code in computer, with comments and organization. (Not so advanced because it is for a

Please write this in C++ with Classes. Please write the code in computer, with comments and organization. (Not so advanced because it is for a class of data structures). Please implement the InventoryItem.h in this code. I need you to add a function that does the inventory accounting that for each purchase updates the inventory

image text in transcribed

image text in transcribed

image text in transcribed

17. Csh Register Design a CashRegister class that can be used with the InventoryItem class discussed in this chapter. The CashRegister class should perform the following: 1. Ask the user for the item and quantity being purchased. 2. Get the item's cost from the InventoryItem object. 3. Add a 30% profit to the cost to get the item's unit price. 4. Multiply the unit price times the quantity being purchased to get the purchase sub- total. Compute a 6% sales tax on the subtotal to get the purchase total. 6. Display the purchase subtotal, tax, and total on the screen. 7. Subtract the quantity being purchased from the onHand variable of the InventoryItem class object. Implement both classes in a complete program. Feel free to modify the InventoryItem class in any way necessarv

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_2

Step: 3

blur-text-image_3

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

Microsoft Visual Basic 2017 For Windows Web And Database Applications

Authors: Corinne Hoisington

1st Edition

1337102113, 978-1337102117

More Books

Students also viewed these Databases questions

Question

2. Discuss various aspects of the training design process.

Answered: 1 week ago