A simple console-based Shopping Cart system built with C#.
This project simulates a mini e-commerce experience where users can add/remove items, view cart contents, undo actions, and proceed to checkout β all from the terminal.
π Created as a practice project focusing on Generics & Collections.
- β Add items to cart (with validation)
- β Remove items from cart by name
- π View cart contents anytime
- βͺ Undo last action (add/remove using
Stack) - π³ Checkout system with confirmation & total price
- πͺ Exit program safely
- β‘ .NET 8 Console Application
- π¦ Generics & Collections:
List<T>β Cart itemsDictionary<TKey, TValue>β Items & PricesStack<T>β Undo actionsTupleβ Paired data (Item, Price)
- π Switch-case menu navigation
- π‘οΈ Input validation & error handling
To run the application locally:
git clone https://github.com/a7medhazem/ShoppingCartSystem-CSharp.git
cd ShoppingCartSystem-CSharp
dotnet runCreated with β€οΈ by a7medhazem
Licensed under the MIT License