3. Write a method normaliseArray which   takes a single argument arr of type int[];   returns an array of the same size,

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

3. Write a method normaliseArray which   takes a single argument arr of type int[];   returns an array of the same size,

Post by answerhappygod »

3. Write a method normaliseArray which
  takes a single argument arr of type int[];
  returns an array of the same size, but of type double[].
  The values in the return array are computed by scanning arr to
find the
largest absolute value m, and loading position i of the return
array with the
result of dividing the value at position i of arr by m.
You can assume that arr does not contain any negative values.
Array arr must
not be altered.
Java language
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply