Skip to content

sk-uom-in/SupermarketCheckout

Repository files navigation

Supermarket Checkout System

Description

The Supermarket Checkout System is a C# project designed to simulate the checkout process at a supermarket. It supports adding items to a shopping cart, applying weekly special offers, and calculating the total cost of items in the cart. This system is built with flexibility in mind, allowing for easy updates to product prices and offers.

Features

  • Shopping Cart Management: Add and remove items from a shopping cart.
  • Dynamic Special Offers: Apply different types of special offers to items, such as "3 for the price of 2" or "2 for a fixed price".
  • Total Price Calculation: Automatically calculate the total price of the shopping cart, including any applicable special offers.

Getting Started

Prerequisites

  • .NET SDK (version 6.0 or later recommended)

Installation

  1. Download in zip form or clone the repository to your local machine.
  2. Navigate to the project's root directory:
    cd SupermarketCheckout
    
  3. Build the project to resolve dependencies:
    dotnet build
    

Usage

To run the application, use the following command from the project's root directory:

dotnet run --project SupermarketCheckout

To execute the unit tests and verify the system's functionality:

dotnet test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages