Using the concept of object-oriented programming (class): 1.Write a program that prompts the user to enter three integer numbers. 2.The program should ask the user to select the operation code to perform it to the numbers. 3.The operation codes are as the following: s sum (a + b + c) m multiplication (a x b x c) h the maximum number x exit
Using the concept of object-oriented
1.Write a program that prompts the user to enter three integer numbers.
2.The program should ask the user to select the operation code to perform it to the numbers.
3.The operation codes are as the following:
s sum (a + b + c)
m multiplication (a x b x c)
h the maximum number
x exit
The program shall keep asking the user to enter an operation code unless the user chooses x to exit.
You are required to create 1 parent class call Maths and 3 child classes – Sum, Multiply and Maximum. Design the program based on your creativity and knowledge of the class features.
Write a comment # beside the line of code in which you implement the concepts that you have learned in class.
Step by step
Solved in 3 steps with 2 images