Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Methods 1. Download ComputeMean.java from Chapter 5 module in folic. Modify the program by adding the following method: public static double mean (int boundary, int

image text in transcribed
Methods 1. Download ComputeMean.java from Chapter 5 module in folic. Modify the program by adding the following method: public static double mean (int boundary, int n) In the mean method, generate n random integers e[0,boundary], compute and 2. return the result of the mean. 3. Rewrite the main method so that it invokes the mean and deviation methods and displays the results of the mean and the standard deviation. A sample main method is as follows: public static void main String!) arga) // Find the first mear of 10,000 randon intagers in the range of // [, 999] and display the result double meanValue- rean 1999, 10000) Syetem.out.printin"The mean is "meanValuel: Find the aecond nean of 1,000, 003 random integers in the / range of 10, 991 and display thn rnaul reanvalue rean (99, 100ac0e) Systan. out.printin("tha mean in "maanvs Submission: Submit your source code in folio using the dropbox folder T ab 9. Please note: Due to Hurricane Michael, some students may not be able to retum to campus on Friday, Oct 12. Therefore, you can do this lab on your own. But Dr Li will still be in the lab room at 2:00 pm as usual for sludents who can attend the lab in person. You must finish this work and submit in folio bston 3:50pm Octobsn l2.2018 Methods 1. Download ComputeMean.java from Chapter 5 module in folic. Modify the program by adding the following method: public static double mean (int boundary, int n) In the mean method, generate n random integers e[0,boundary], compute and 2. return the result of the mean. 3. Rewrite the main method so that it invokes the mean and deviation methods and displays the results of the mean and the standard deviation. A sample main method is as follows: public static void main String!) arga) // Find the first mear of 10,000 randon intagers in the range of // [, 999] and display the result double meanValue- rean 1999, 10000) Syetem.out.printin"The mean is "meanValuel: Find the aecond nean of 1,000, 003 random integers in the / range of 10, 991 and display thn rnaul reanvalue rean (99, 100ac0e) Systan. out.printin("tha mean in "maanvs Submission: Submit your source code in folio using the dropbox folder T ab 9. Please note: Due to Hurricane Michael, some students may not be able to retum to campus on Friday, Oct 12. Therefore, you can do this lab on your own. But Dr Li will still be in the lab room at 2:00 pm as usual for sludents who can attend the lab in person. You must finish this work and submit in folio bston 3:50pm Octobsn l2.2018

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Systems Analysis And Synthesis Bridging Computer Science And Information Technology

Authors: Barry Dwyer

1st Edition

0128054492, 9780128054499

More Books

Students also viewed these Databases questions