Fill This Form To Receive Instant Help

Help in Homework
trustpilot ratings
google ratings


Homework answers / question archive / Question b: There are several ways to normalize, or scale, a set of values

Question b: There are several ways to normalize, or scale, a set of values

Computer Science

Question b: There are several ways to normalize, or scale, a set of values. One common normalization technique scales the values such that a minimum value goes to o, a maximum value goes to 1, and the other values are scaled accordingly. For example, using this method, we can normalize the values in the following array: Array values: -2 2 O Normalized Values: 0.0 0.25 1.0 0.5 The equation that computes the normalized value from a value x in the array is: Xk - minx Normalized Xk = maxx - minx Where min, and max, represent the minimum and maximum values in the array x. Assume "quizzes.txt" contains grades for 2 quizzes (2 columns) in a class of 180+ students. Unfortunately, the quizzes were not graded to the same scale and aren't readily comparable. Read the data from the file into two 1D arrays and sort each of the arrays into ascending order using a sort function. Normalize both data sets to a scale from o to 1 (note, when the data is normalized it could result in real numbers). To do this, write a function that normalizes the values in the array using the equation above. In determining min, and max, you may assume that in both sorted data sets, some students did not complete the quiz and others got perfect scores. Finally, find and display the overall average grade of both quizzes using a modified version of the mean function. Note: use of min and max functions is prohibited - find another way! @ Possible normalization function prototype: void norm (double x, int n, double minx, double maxx)

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE