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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started