Skip to content

a7medhazem/ShoppingCartSystem-CSharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›’ Shopping Cart System (Console App - C#)

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.


✨ Features

  • βž• 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

πŸ› οΈ Technologies & Concepts

  • ⚑ .NET 8 Console Application
  • πŸ“¦ Generics & Collections:
    • List<T> β†’ Cart items
    • Dictionary<TKey, TValue> β†’ Items & Prices
    • Stack<T> β†’ Undo actions
    • Tuple β†’ Paired data (Item, Price)
  • πŸ”„ Switch-case menu navigation
  • πŸ›‘οΈ Input validation & error handling

πŸš€ Getting Started

To run the application locally:

git clone https://github.com/a7medhazem/ShoppingCartSystem-CSharp.git
cd ShoppingCartSystem-CSharp
dotnet run

πŸ“„ License & Author

Created with ❀️ by a7medhazem
Licensed under the MIT License

About

A console-based Shopping Cart System built with C# to practice Generics and Collections. Covers List, Dictionary, Stack, and Tuple, with input validation, error handling, and a clean menu-driven workflow.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages