-
Ensure you have Python3 installed. You can download it here: https://www.python.org/downloads/
-
Run the program in the terminal using Python3: python3 calculator.py
-
Follow the on-screen prompts to select the type of math problem you would like to solve.
HOW IT WORKS
- When you run the program, it will display a menu with the following options: Please select the type of math problem you would like to run: [1] Addition [2] Subtraction [3] Division [4] Multiplication [5] Power of X [0] Exit Program
[+] Enter the number corresponding to your choice [+] If you choose '0' the program will exit [+] If you choose any number other than the choices provided the program will exit [+] If you choose a valid option (1-5), you will be prompted to enter two numbers
- For the 'Power of X' the second number will be the exponent The program will then display the result of the selected operation
Please select which type of math problem you would like to run: [1] Addition [2] Subtraction [3] Division [4] Multiplication [5] Power of X [0] Exit Program Enter number for the type of Math problem please: 1 You selected ADDITION Enter first number: 5 You entered: 5 Enter second number (if you selected 5 this will be the exponent): 3 You entered: 3 5 plus 3 equals 8