Skip to content

A comprehensive C# console app for shoppers and retailers, integrating functional programming, CLI colors, and speech synthesis. Retailers manage inventory, while customers shop, receive notifications, and generate receipts. Enjoy a seamless shopping experience!

Notifications You must be signed in to change notification settings

malikmalikayesha/shopping-cart-and-inventory-system

Repository files navigation

Shopping Cart and Inventory System

A console-based application developed in C# that provides a comprehensive interface for both customers and retailers. The application incorporates fundamental programming concepts, including functional programming, speaking assistance, CLI colors, loops, conditions, various data types, and file handling for data persistence.

Retailer Functionality:

  1. Add New Items to the Inventory: Retailers can easily add new items to the inventory, ensuring an up-to-date and dynamic product list.

  2. View Existing Items: Retailers have the ability to view the existing inventory, making it convenient to monitor available products.

  3. Utilize File Handling for Data Persistence: File handling is employed to persistently store and retrieve data, ensuring that the inventory remains consistent across sessions.

Customer Functionality:

  1. Access the Inventory and View Items with Prices: Customers can access the inventory to view a list of items along with their corresponding prices.

  2. Select Items and Add Them to the Shopping Cart: Customers can easily select items from the inventory and add them to their shopping cart for convenient and efficient shopping.

  3. Receive Notification for Unavailable Items: A notification through a buzzer is triggered when customers attempt to add an item that is currently unavailable in the inventory.

  4. Benefit from Speech Synthesis for Guidance: Customers receive step-by-step guidance and menu information through speech synthesis, enhancing the user experience.

  5. Receipt Generation at the End of Shopping: Upon completing the shopping process, customers receive a generated receipt summarizing their selected items and the total amount.

Concepts Utilized:

  • Functional Programming: The project incorporates functional programming principles to enhance code readability and maintainability.

  • CLI Colors: CLI colors are utilized to provide a visually appealing and intuitive interface for both retailers and customers.

  • Loops and Conditions: Standard programming constructs such as loops and conditions are employed to create a responsive and interactive application.

  • Various Data Types: Different data types are used to represent and manipulate various aspects of the inventory and shopping cart.

  • File Handling: File handling is employed to maintain a persistent list of items available in the inventory, ensuring data integrity.

Getting Started:

  1. Clone the repository to your local machine.
  2. Compile and run the application using a C# compiler.
  3. Follow the on-screen instructions for both retailer and customer interactions.

Dependencies:

  • This project has no external dependencies beyond the standard C# libraries.

Contributing

Contributions are welcome! If you'd like to contribute, please follow the guidelines in the CONTRIBUTING.md file.

About

A comprehensive C# console app for shoppers and retailers, integrating functional programming, CLI colors, and speech synthesis. Retailers manage inventory, while customers shop, receive notifications, and generate receipts. Enjoy a seamless shopping experience!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages