Question: c help, this must only have stido. h Please follow the insturctions very very closely. Create a method named getMaxAbsolute which takes a double array

c help, this must only have stido. h Please follow the insturctions very very closely.

Create a method named getMaxAbsolute which takes a double array and the number of items in the array as parameters. This method should return the item from the array with the largest absolute value. Return the ITEM and NOT the absolute value. That is if the array is { -2.5, -10.1, 5.2, 7.0}, your function should return -10.1 and if the array is {5.1, 2.3, 4.9, 1.0}, your function should return 5.1. If there is a negative and a positive of the same maximum magnitude, return the positive value.

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!