Question: Java Assigment 3 - Intro to Java Programming Assignment 3 Preparation This assignment will focus on the use of random numbers, if statements and the
Java Assigment 3 - Intro to Java Programming
| Assignment 3 Preparation |
| This assignment will focus on the use of random numbers, if statements and the swapping of values in two different variables. |
| Assignment 3 |
| Assignment 3 Submission |
| Follow the directions below to submit Assignment 3: Create a Java program. The class name for the program should be 'ValueSwap'. In the main method you should perform the following: Prompt the user to input an integer value using the Scanner class. Call Math.random() to create a second integer value between 0 - 99. Compare the two variable's values. If the first is greater than the second then swap their values. If the first is not greater than the second then do nothing. Output the following " |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
