Step 1: Pick A Design Challenge: Inventory Management System
Step 1: Pick A Design Challenge: Inventory Management System
Functional Requirements
• Build a working console application that allows real-time product stock management.
• Provide accurate and timely inventory information.
Functional Requirements
csharp
CopyEdit
using System;
using System.Collections.Generic;
namespace InventoryManagement
{
class Product
{
public string Name { get; set; }
public decimal Price { get; set; }
public int StockQuantity { get; set; }
}
class Program
{
static List<Product> inventory = new List<Product>();
if (product != null)
{
Console.Write("Enter new stock quantity: ");
product.StockQuantity =
int.Parse(Console.ReadLine());
Console.WriteLine("Stock updated
successfully.");
}
else
{
Console.WriteLine("Product not found.");
}
}