Author | Message |
---|---|
jroble52
Posts: 15
|
Posted 13:46 Jan 26, 2018 |
So, from my understanding of the instructions: inside the print method, I loop to print the original array, then after that, I called the method that changes a value above 500 then called the reciprocal method and loop to print out the altered version of the array, meaning that I called the print method once in main(). Is this what we're supposed to do? Or is it that we use the print method in main() for each method that changes the original array in some way e.g: print(above500Method(array)) then print(reciprocateArray(array)) My program works but I feel like I'm doing something wrong :/ |
jhurley
Posts: 207
|
Posted 14:49 Jan 26, 2018 |
Print the array after it is first created, then every time it changes. After the method that creates a new array of reciprocals, print out both of the arrays and make sure they are different; if they are not, you will know you need to debug the method that created the new array. |