Question: Help!!! Language: Java Can somebody help me the code of following: Make changes to H3_Q3.java to accomplish the following tasks. a. The file H3_Q3.java contains

Help!!!

Language: Java

Can somebody help me the code of following:

Make changes to H3_Q3.java to accomplish the following tasks.

a. The file H3_Q3.java contains code to generate a random floating-point number between 0 an 1. Add a loop that generates 10,000 such random numbers.

1

  1. For the 10,000 random numbers generated in (a), add code that counts the total number of times that the random value generated exceeds 0.75. Print this total to the screen with an appropriate label.

  2. For the 10,000 random numbers generated in (a), add code that counts the total number of times that the random value generated is in either of the following ranges: [0.0,0.2] or [0.8,1.0]. Print this total to the screen with an appropriate label.

  3. Write a loop the continues to generate random floating-point numbers between 0 an 1 until the random value generated exceeds 0.9. Print out the number of times the loop was executed with an appropriate label.Help!!! Language: Java Can somebody help me the code of following: Make

package studentwork; W NP public class H3_Q3 { public static void main(String args[]) 65 double randomNumber; //stores randomly generated number between 0 and 1 //add loop around statement below to generate 10,000 random numbers randomNumber = Math.random(); //generates random number between 0 and 1 and stores it in randomNumber 650i

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!