Question: Write methods to perform basic calculation between TWO (2) int numbers. You should have fourMethods namely add, subtract, divide, multiply. Each method receives two INT
Write methods to perform basic calculation between TWO (2) int numbers. You should have fourMethods namely add, subtract, divide, multiply. Each method receives two INT numbers.Get the two numbers from the user. Also, ask user which operation to be performed.Call the method accordingly and display the result of the selected operation.


Task 1: Write methods to perform basic calculation between TWO (2) int numbers. You should have four Methods namely add, subtract, divide, multiply. Each method receives two INT numbers. Get the two numbers from the user. Also, ask user which operation to be performed. Call the method accordingly and display the result of the selected operation. Objectives: To implement methods. To implement overloading methods. Apparatus/Software Used: - Lab Computer - Notepad Eclipse/NetBeans
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
