Question: Please help in JAVA: Write a complete program that asks the user to input two integers. The user is then prompted for an integer between
Please help in JAVA:
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).
Thanks!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
