Question: Program # 1 : Write a Java program that performs the following tasks: * Allows the user to input 4 integers from the keyboard. *
Program #: Write a Java program that performs the following tasks:
Allows the user to input integers from the keyboard.
Multiplies the first two integers together.
Multiplies the second two integers together.
Prints the two products in ascending order:
If the products are the same, then print it once and state that the products are the same.
Runs of the program should look like the following:
jGRASP exec: java ProgramSmith
Input first integer:
Input second integer:
Input third integer:
Input fourth integer:
Products in ascending order:
jGRASP: operation complete.
jGRASP exec: java ProgramSmith
Input first integer:
Input second integer:
Input third integer:
Input fourth integer:
Products in ascending order:
jGRASP: operation complete.
jGRASP exec: java ProgramSmith
Input first integer:
Input second integer:
Input third integer:
Input fourth integer:
Products in ascending order:
jGRASP: operation complete.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
