A student encounters errors with a function designed to return the Index position of the smallest value in an array of d
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
A student encounters errors with a function designed to return the Index position of the smallest value in an array of d
A student encounters errors with a function designed to return the Index position of the smallest value in an array of double values. Read the function definition used for this purpose and identity the error(s). double findMin (double art, ints) inti IntIndexOf Min = 0; for (11 : ++) Kantar findexOlin Index Min > retum indexOM > O a. Even though the array is type double, the returned index position data type should have been integer b. The comparison of values is backwards, saving the Index position of the larger rather than the smaller value. The parameter list is incorrectly specified d.bandc ca and
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!