Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a function called normalizeGrades that receives a row array of test scores of arbitrary length and positive values, and produces two outputs: A row

Write a function called normalizeGrades that receives a row array of test scores of arbitrary length and positive values, and produces two outputs:
A row array array containing the grades normalized to a linear scale from 0 to 100(i.e. grades are normalized if the maximum grade equals 100). Hint: Use the internal function max.
The average of the normalized grades. Hint: Use the internal function mean.
Restriction: Loops may not be used. For example, following code:
scores=[90,45,76,21,85,97,91,84,79,67];
[normScores,average]=normalizeGrades(scores)
produces:
normScores=[92.78,46.39,78.35,21.65,87.63,100,93.81,86.6,81.44,69.07]
average=75.77

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

OCA Oracle Database SQL Exam Guide Exam 1Z0-071

Authors: Steve O'Hearn

1st Edition

1259585492, 978-1259585494

More Books

Students also viewed these Databases questions

Question

Different types of Grading?

Answered: 1 week ago

Question

Explain the functions of financial management.

Answered: 1 week ago

Question

HOW MANY TOTAL WORLD WAR?

Answered: 1 week ago

Question

Discuss the scope of financial management.

Answered: 1 week ago