Question: Help writing the following C++ code? Qbiective: Write a program that will input values from a file into a one-dimensional array, locate the maximum value,

Help writing the following C++ code?
 Help writing the following C++ code? Qbiective: Write a program that
will input values from a file into a one-dimensional array, locate the

Qbiective: Write a program that will input values from a file into a one-dimensional array, locate the maximum value, calculate new values and store them into a second one-dimensional array. Reference: Chapter 7 of the textbook and lecture notes Problem: Write a program that will normalize the 20 floating-point numbers saved in 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. Store the resulting values in a second array, normal A. Read in the 20 values from a data file located on Canvas called stats.txt. This is an EOF data file. Be sure to keep track of how many values you read in, in case it is less than your maximum number allowed. This is also helpful for when you work with counter-control or trailer-signal files. Output the results to the screen in a neat and readable format. Include the values of the original array and the normalized array. As well as the maximum value used for the normalization calculation B. Upload your source code and a copy of the output to Canvas. Hints .(1) Read in the data and echo it out (2) then locate maximum value (3) then create normalized array and (4) last step, output results in a neat and readable format

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!