Question
Visual Basic Programming Challenges Questions 7-9 Starting Out With Visual Basic 7th Edition Gaddis 7. Inventory Class Create an application that stores inventory records for
Visual Basic Programming Challenges Questions 7-9 Starting Out With Visual Basic 7th Edition Gaddis
7. Inventory Class
Create an application that stores inventory records for a retail store. The application should have anInventory class with the following properties:
InvNumber: | A string used to hold an inventory number. Each item in the inventory should have a unique inventory number. |
Description: | A string that holds a brief description of the item. |
Cost: | A decimal value that holds the amount that the retail store paid for the item. |
Retail: | A decimal value that holds the retail price for the item. |
OnHand: | An integer value that holds the number of items on hand. This value cannot be less than 0. |
The application should store Inventory class objects in a collection. Create an input form in the application that allows users to input new inventory items to be added to the collection. The user should also be able to look up items by their inventory number.
8. Inventory Class Modification
Modify the application you created in Programming Challenge 7 so it saves the contents of the collection to a file. When the application starts up, it should load the data from the file into the collection. Be sure to use exception handling.
9. 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 stores inventory. When the application starts up, it should load the entire stores inventory from a file into a collection of Inventoryobjects.
When a purchase is made, the cashier should select an item from a list box. (If an items OnHand property is set to zero, the item should not be available in the list box.) The items 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 items OnHand property. When the application ends, the contents of the collection should be saved to the file.
Copy from the solution (it is incorrect) or others will result in a negative vote.
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