CS174: OOP - Drills - Array Min Index
Developed by Professor Tralie and Professor Mongan.
Exercise Goals
The goals of this exercise are:- To do proper array indexing
- To use loops in concert with arrays
- To keep track of multiple auxiliary variables in a loop
- To properly define methods
getMinIndex
takes in an array of doubles and returns the index of the minimum element in the array. You must handle the following two special cases: - If there are ties, it should return the lowest index among the ties
- If the array is empty, your program should return 0 without crashing
Welcome to our online modules system!
Be sure to log in with your Urinus ID
before you proceed.
For example, Professor Tralie's ID is ctralie.
If you are not an Ursinus student, that's fine!
Just make something up, and you can still run everything