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 .

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 smalest is output. You MUST create the following methods and they MUST ALL return integers because they will be unit tested: public statie int add int a, int b) public static int Multiply \{int a, int b) public static int Largest (int a, int b) public statie int Snallest (int a, int b) MAIN outputs the result. Your methods do not output, they just return an int
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
