Question: Create a class called MyAwesomeMath and add Addition, Subtraction, Multiplication and Division as methods. Also, when asking user for entering the first and the
Create a class called MyAwesomeMath and add Addition, Subtraction, Multiplication and Division as methods. Also, when asking user for entering the first and the second number; store those numbers in two class variables called firstNumber and secondNumber. Make sure you create an _init___ method in your class and initialize the firstNumber and secondNumber to 0. The following is the output of your program Enter first number: 3 Enter first number: 2 1. ADDITION 2. SUBTRACTION 3. 4. DIVISION Enter your choice: 1 MULTIPLICATION 5 1. ADDITION 2. SUBTRACTION 3. MULTIPLICATION 4. DIVISION Enter your choice: 2 1. ADDITION 2. SUBTRACTION 3. MULTIPLICATION 4. DIVISION Enter your choice:3 6 1. ADDITION 2. SUBTRACTION 3. MULTIPLICATION 4. DIVISION Enter your choice:4 1.5 1. ADDITION 2. SUBTRACTION 3. MULTIPLICATION 4. DIVISION
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
