Skip to content

This is a C# price calculator program that calculates the price of a product with a flat-rate tax, discounts, packaging, transport, and administrative costs. Customers can choose how discounts are combined. The program simulates the evolution of customer requirements over time.

Notifications You must be signed in to change notification settings

OthmanMohammad/Price-Calculator

Repository files navigation

Price Calculator

This project is a C# implementation of a price calculator, which can perform the following operations on a list of products:

  • Calculate taxes based on a given tax rate.
  • Apply discounts based on a given discount rate or specific UPC discounts.
  • Apply expenses based on a percentage or monetary value.
  • Apply a cap to the final price.

Familiarity with C#

This project assumes familiarity with the C# programming language, particularly object-oriented programming concepts like classes, interfaces, and inheritance. It also assumes familiarity with the .NET Framework and Visual Studio, as the project is built using these technologies.

Program.cs

The Program.cs file contains sample code demonstrating how to use the price calculator to perform various operations on a list of products. The following operations are demonstrated:

  • Calculating taxes on a product.
  • Applying a discount to a product.
  • Applying a selective discount to a product based on a UPC code.
  • Applying multiple discounts to a product, where the discount with the highest amount is applied.
  • Applying expenses to a product.
  • Applying a cap to the final price of a product.

Usage

To use the price calculator, follow these steps:

  1. Clone the repository.
  2. Open the solution in Visual Studio.
  3. Build the solution.
  4. Run the PriceCalculator project.

Contributing

Contributions are welcome! If you find a bug or want to add a feature, please open an issue or submit a pull request.

Author

This project was created by Mohammad Othman.

About

This is a C# price calculator program that calculates the price of a product with a flat-rate tax, discounts, packaging, transport, and administrative costs. Customers can choose how discounts are combined. The program simulates the evolution of customer requirements over time.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages