Question: using c++ Modify the arrayListType by adding a member function that normalizes the elements in the list an return the maximum value in the list.

using c++
 using c++ Modify the arrayListType by adding a member function that
Modify the arrayListType by adding a member function that normalizes the elements in the
list an return the maximum value in the list. Normalization is to divide each element in the list
by the maximum number in the list.
For example, if list L contains the elements,
2134350
and you call the member function as in
L.normalize();
The list content will then be changed to
0.4 0.2 0.6 0.8 0.6 10
And the function returns 5.
using c++

Part 1: Starting from the arrayListType. h (attached with this assignment) and without using any of the predefined member functions or modifying them, write the required code to do the following. Make sure to perform all the required error checkings. 1. Modify the arraylistType by adding a member function that normalizes the elements in the list an return the maximum value in the list. Normalization is to divide each element in the list by the maximum number in the list. For example, if list L contains the elements. 2134350 and you call the member function as in L.normalize(): The list content will then be changed to 0.40.20.60.80.610 And the function returns 5 . The list should not be empty

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!