An open API service indexing awesome lists of open source software.

https://github.com/stefanief2004/pricecalculatorwinforms

C# Windows Forms app for calculating item prices based on size and single discount options.
https://github.com/stefanief2004/pricecalculatorwinforms

check-box csharp radio-buttons visual-studio visual-studio-code windows-forms

Last synced: about 1 month ago
JSON representation

C# Windows Forms app for calculating item prices based on size and single discount options.

Awesome Lists containing this project

README

          

# PriceCalculatorWinForms

This is a simple C# Windows Forms application that calculates the price of an item based on user-selected size and discount options.

## Features

- Select item size via radio buttons: Small, Medium, or Large — each with a predefined base price.
- Choose one discount option (10%, 20%, or 30%) using checkboxes — only one discount can be applied at a time.
- Real-time price calculation displayed on the form.
- Demonstrates basic event handling and UI controls in Windows Forms.

## How it works

- When a size is selected, the base price is set accordingly.
- Selecting a discount checkbox applies the corresponding percentage discount.
- If no size is selected, the price is zero.
- Discount checkboxes are mutually exclusive, ensuring only one discount is applied.

## Screenshot
![image](https://github.com/user-attachments/assets/ad2cae3c-0e0b-4758-a93d-f2731f706122)
![image](https://github.com/user-attachments/assets/a7fb1704-e7d9-4666-990d-8ae4b47f16b6)
![image](https://github.com/user-attachments/assets/d55a1289-6a05-4202-af87-c810e86b5b42)

## Technologies Used

- C# with .NET Framework
- Windows Forms (WinForms)
- Visual Studio

## Usage

Run the application, select the size and a discount (if desired), and the total price will be updated instantly.

---
## Author
Created by **[Stefanija Fileva]**
Faculty project – Computer Engineering and Technology
2025
## License
This project is licensed under the MIT License – see the LICENSE file for details.