The calculator is like a rite-of-passage in programming. Every decent noob simply must write a program that adds and subtracts. Now that we already know how to manipulate classes and static methods, we'll create a regular calculator with four arithmetic operations and even the ability to find a percentage of a number!

# Calculator

- 5

anddivisionmethods you need to convert them into double numbers. You can add a double in parenthesis next to at least one number. For example: Ifpercentais aninteger, then(double)a/3gives you a double number. And if you want thexpercent of theynumber. First you need to dividex/100and then multiply it byy.