Portfolio Details

Discover the projects and case studies that showcase my expertise and passion for software development, highlighting my commitment to innovative solutions and effective problem-solving.

Screenshot of CSharp Calculator

Project information

  • Category: C#.net
  • Client: Karlstad University
  • Project date: 16 February, 2024
  • Project URL: github.com

Simple Calculator in C#.NET

This project involves developing a simple calculator with a graphical user interface (GUI) in C#.NET, designed to handle basic arithmetic operations: addition, subtraction, multiplication, and division. The calculator operates using only integers, similar to the standard mode of the Windows calculator, excluding scientific functions.

The calculator allows for serial operations such as consecutive additions and multiplications (e.g., 1+3+5 or 2*5+5), closely mimicking the behavior of the Windows calculator. Input can be handled via buttons, with an emphasis on preventing invalid user inputs.

Key features include handling division by zero, managing integer overflow in a user-friendly manner, and ensuring that the calculator does not crash, even under edge cases. The calculator is designed to ignore operator precedence, following the behavior of the Windows calculator, and it does not use automatic computation methods like `DataTable.Compute`.