Problem

Cash RegisterCreate an application that serves as a simple cash register for a retail stor...

Cash Register

Create an application that serves as a simple cash register for a retail store. Use the inventory class you created in Programming Challenge 7 to store data about the items in the store’s inventory. When the application starts up, it should load the entire store’s inventory from a file or a database into a collection of Inventory objects.

When a purchase is made, the cashier should select an item from a list box. (If an item’s OnHand property is set to zero, the item should not be available in the list box.) The item’s description, retail price, and number of units on hand should be displayed on the form when selected. The cashier should enter the quantity being purchased, and the application should display the sales tax and the total of the sale. (The quantity being purchased cannot exceed the number of units on hand.) The quantity being purchased should be subtracted from the item’s OnHand property. When the application ends, the contents of the collection should be saved to the file or database.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT