Question: Write a program that will normalize the 5 floating numbers saved in the array STATS. To normalize an array of numbers, first find the largest

Write a program that will normalize the 5 floating numbers saved in the array STATS. To normalize an array of numbers, first find the largest number in the array, and then divide each number in the array by the largest number. Each resulting value will then be between 0 and 1.

Example of the output are:

Enter your numbers:

34

87

23

100

56

The largest number:100

The value after divide by 100 is: 0.34

The value after divide by 100 is: 0.87

The value after divide by 100 is: 0.23

The value after divide by 100 is: 1.00

The value after divide by 100 is: 0.56

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!