namespace PointOfSaleManager
public static bool canExit = false;
public static string inputString = "";
public static Item[] inventory = new Item[0];
public static void Main(string[] args)
PopulateSampleInventory();
inputString = Console.ReadLine();
MainMenuUpdateInventory();
MainMenuDisplayInventory();
public static void PopulateSampleInventory()
new Item { Id = 1, Name = "Woman Red Shoes Medium", Price = 14.99f, Quantity = 3, Type = "Shoes"},
new Item { Id = 2, Name = "Woman Red Shoes Large", Price = 16.99f, Quantity = 1, Type = "Shoes"},
new Item { Id = 3, Name = "Woman Yellow Shoes Small", Price = 13.99f, Quantity = 3, Type = "Shoes"},
new Item { Id = 4, Name = "Woman Yellow Shoes Medium", Price = 14.99f, Quantity = 2, Type = "Shoes"},
new Item { Id = 5, Name = "Rolex Watch, Explorer", Price = 3299.59f, Quantity = 21, Type = "Watches"},
new Item { Id = 6, Name = "Apple Watch II", Price = 142.59f, Quantity = 21, Type = "Watches"},
new Item { Id = 7, Name = "Apple iPhone 12 Pro MAX", Price = 452.99f, Quantity = 8, Type = "Phones"},
new Item { Id = 8, Name = "Apple iPhone 12 Pro", Price = 389.99f, Quantity = 16, Type = "Phones"},
new Item { Id = 9, Name = "Samsung Galaxy S21", Price = 325.00f, Quantity = 16, Type = "Phones"},
public static void Welcome()
welcomeMsg += "========================================================\n";
welcomeMsg += "== Welcome to Point of Sale Manager ==\n";
welcomeMsg += "========================================================\n";
Console.WriteLine(welcomeMsg);
public static void MainMenu()
menuMsg += "Please enter one of the option number, following by enter:\n";
menuMsg += "==========================================================\n";
menuMsg += "1. Place an Order\n";
menuMsg += "2. Update inventory\n";
menuMsg += "3. Item Inquiry\n";
menuMsg += "4. Display Inventory\n";
menuMsg += "5. About us\n";
Console.WriteLine(menuMsg);
Console.Write("Option: ");
public static void MainMenuErrorInput()
string errorMsg = "Error! The input '" + inputString +
"' is not part of the menu, please enter a valid option.\n";
errorMsg += "Press enter key to continue ...\n";
Console.WriteLine(errorMsg);
public static void MainMenuPlaceOrder()
Console.WriteLine("TODO: Placing Order.\n");
public static void MainMenuUpdateInventory()
Console.WriteLine("TODO: Updating the Inventory.\n");
public static void MainMenuItemInquiry()
Console.WriteLine("TODO: Inquiring an Item.\n");
public static void MainMenuDisplayInventory()
string inventoryMsg = "Displaying Inventory:\n\n";
inventoryMsg += "| ID | Name | Price | Quantity | Type |\n";
inventoryMsg += "=======================================\n";
for (int x = 0; x < inventory.Length; x++)
inventoryMsg +="| " + inventory[x].Id + " | " + inventory[x].Name + " | " + inventory[x].Price + " | " + inventory[x].Quantity + " | " + inventory[x].Type + " |\n";
Console.WriteLine(inventoryMsg);
public static void MainMenuAboutUs()
string aboutUsMsg = "==========================================================\n" +
"== _____ _____ _____ _____ ==\n" +
"== | _ | | __| | |___ ___ ___ ___ ___ ___ ==\n" +
"== | __| | |__ | | | | | .'| | .'| . | -_| _| ==\n" +
"== |__| |_____|_____| |_|_|_|__,|_|_|__,|_ |___|_| ==\n" +
"==========================================================\n" +
"Point of Sale Manager is a software written for school\n" +
"final project, all made with love and passion to pass the \n" +
"Mission and vision:\n" +
"- This project is aimed to enhance the online shopping for \n" +
"products using the command line interface, this will allow \n" +
"the store manager to manage the inventory and placing order \n" +
"directly to the system.\n\n" +
"- This project for what exactly?.\n\n" +
"- Mahmood Alqaffas\n\n" +
"Press enter key to continue ...";
Console.WriteLine(aboutUsMsg);
public static void MainMenuExit()
string exitGoodbyeMsg = "========================================================\n" +
"== Thank you for using Point of Sale Manager! ==\n" +
"========================================================\n" +
"========================================================\n";
Console.WriteLine(exitGoodbyeMsg);