I wanted to add more projects to my name and thought a simple calculator could be a great start.

What it does

It takes a user's first number, then the operator (+, -, /, *), then the user's second number and outputs the calculation.

How I built it

Built using functions, for loops, do-while loops, if-else conditional statements, and Boolean.

Challenges I ran into

Spacing in the UI once the user's two numbers and operator was inputted, before printing the calculated output.

Accomplishments that I'm proud of

I replaced a lot of hardcoding with function calls using parameters to determine the perfect spacing.

What I learned

I learned that trying to determine spacing with hardcode is much more difficult than utilizing functions and function calls.

What's next for Simple Calculator

I want to be able to add more complex calculations like Trigonometry (sin, cos, tan, etc).

Built With

Share this project: