Question: Write a complete program that asks the user to input two integers. The user is then prompted for an integer between 1 and 4. If

Write a complete program that asks the user to input two integers. The user is then prompted for an integer between 1 and 4. If the user enters 1, the integers are added, if 2 they are multiplied, if 3 the largest is output, if 4 the smallest is output. You MUST create the following methods and they MUST ALL return integers because they will be unit tested: public static int Add (int a, int b) public static int Multiply (int a, int b) public static int Largest (int a, int b) public static int Smallest (int a, int b) MAIN outputs the result. Your methods do not output, they just return an int. please answer in JAVA Script

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!