Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

LAB: Adjust list by normalizing - methods (Interactive) When analyzing data sets, such as data for human heights or for human weights, a common step

LAB: Adjust list by normalizing - methods (Interactive) When analyzing data sets, such as data for human heights or for human weights, a common step is to adjust the data. This can be done by normalizing to values between 0 and 1, or throwing away outliers. For this program, adjust the values by dividing all of the values in the list bye the smallest value. If the smallest values is 0, leave the list unchanged. The input begins with an integer indicating the number of double values that follow.

Ex: If the input is:

How many values? S

30.0

50.0

10.0

70.0

65.0

the output is:

3.0 5.0 1.0 7.0 6.5

The main method for this program has already been written - you must define the following 2 methods to make the program work:

public static int getMinimum ( double[] values)

public static void normalize (double[] values, double smallest)

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

Combinatorial Testing In Cloud Computing

Authors: Wei-Tek Tsai ,Guanqiu Qi

1st Edition

9811044805, 978-9811044809

More Books

Students also viewed these Programming questions