Generate a class called BigOrSmall and create a main method in this class. Inside the main method follows these stesp: 1. Generate a random whole number between 1(exclusive) and 5 (inclusive) by using...


its java languages!


Plase give me full code with follwing output.


Thanks


Generate a class called BigOrSmall and create a main method in this class. Inside<br>the main method follows these stesp:<br>1. Generate a random whole number between 1(exclusive) and 5 (inclusive) by using<br>inm w<br>the random method found in Math class and store it in a variable called<br>smallRandNum.“<br>2. Print

Extracted text: Generate a class called BigOrSmall and create a main method in this class. Inside the main method follows these stesp: 1. Generate a random whole number between 1(exclusive) and 5 (inclusive) by using inm w the random method found in Math class and store it in a variable called smallRandNum.“ 2. Print "We will run [value] times!". Where [value] is replaced with the value of- smallRandNum. 3. Execute a for loop, which is the number of iterations of smallRandNum using the generated number. 4. In each iteration of the for loop, use the random method of the Math class to make a random whole number from 1 (exclusive) to 20 (inclusive), and store it to a variable. 5. Print out "The value is: [value]" (replace the value in bracketed section with the generated value). 6. If the number is greater than 10, it prints out "Yay!"- 7. Otherwise, it print out “Nay!". Output: - We will run 2 times! The value is :10 Nay!- The value is : 11- Yay!e

Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here