Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Create an Application that stores inventory records for a retail store. The appl

ID: 3547180 • Letter: C

Question

Create an Application that stores inventory records for a retail store. The application should have an Inventory 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 cost: 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. It canot 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 be able to look up thir items by their inventory number. This is Visual basic. Any help is GREATLY apprecited!!!!

Explanation / Answer

Here is the code I have for inventory.vb
Public Class inventory
Private inventoryNumber As String
Private desc As String
Private partCost As Decimal
Private retailPrice As Decimal
Private qtyOnHand As Integer

Public Property InvNumber() As String
Get
Return inventoryNumber
End Get
Set(ByVal value As String)
inventoryNumber = value
End Set
End Property

Public Property Description() As String
Get
Return desc
End Get
Set(ByVal value As String)
desc = value
End Set
End Property
Public Property Cost() As Decimal
Get
Return partCost
End Get
Set(ByVal value As Decimal)
partCost = value
End Set
End Property
Public Property Retail() As Decimal
Get
Return retailPrice
End Get
Set(ByVal value As Decimal)
retailPrice = value
End Set
End Property
Public Property OnHand() As Integer
Get
Return qtyOnHand
End Get
Set(ByVal value As Integer)
If value < 0 Then
MessageBox.Show("OnHand cannot be less than 0.", "Error")
qtyOnHand = 0
Else
qtyOnHand = value
End If
End Set
End Property
End Class

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote