How do I make a class that adds, removes and views items from a stock using csharp?
Write a program to read the data of a product in stock (name, price and
quantity in stock).
• Show product data (name, price, quantity in stock, total value on
inventory)
Enter the product data:
Name: TV Price: 900.00
Quantity in stock: 10
Product Data: TV, $900.00
10 units
Total: $9000.00
Enter the number of products to be added to stock: The last digit of the UK
of the student. If the stock is zero, issue a command to enter another digit.
Updated data: TV, $900.00, 15 units, Total: $13500.00
Enter the number of products to be removed from stock: 3 Updated data: TV, $
900.00, 12 units, Total: $10800.00
• Make a stock entry and show the product data again
• Carry out an issue in stock and show the product data again.
Last edited by a moderator: