Question: Exercise 1 Description For this lab you will write a Java program to prompt the user for two numbers. Your program should display a message

 Exercise 1 Description For this lab you will write a Java

program to prompt the user for two numbers. Your program should display

Exercise 1 Description For this lab you will write a Java program to prompt the user for two numbers. Your program should display a message indicating which number is the larger number. In the ClosedLabo3 folder, create a new Java program named Labo3a.java for this problem. Exercise 1 Sample output This is a sample transcript of what your program should do. Items in bold are user input and should not be put on the screen by your program. Enter your first number 15 Enter your second number: 25 25 is larger than 15 A second run of the code might give this output: Enter your first number 99 Enter your second number 21 99 is larger than 21 NOTE: With a single if else statement, your code is not expected to handle the case where the two numbers are equal. Think about what you would need to do to be able to print a message like "the two numbers are equal" to the screen when the same number is input twice

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!