Trusted by Students Everywhere
Why Choose Us?
0% AI Guarantee

Human-written only.

24/7 Support

Anytime, anywhere.

Plagiarism Free

100% Original.

Expert Tutors

Masters & PhDs.

100% Confidential

Your privacy matters.

On-Time Delivery

Never miss a deadline.

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

Computer Science Mar 24, 2022

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)

Expert Solution

For detailed step-by-step solution, place custom order now.
Need this Answer?

This solution is not in the archive yet. Hire an expert to solve it for you.

Get a Quote
Secure Payment