Thanks once again! worked like a charm.
Type: Posts; User: Imeerie
Thanks once again! worked like a charm.
So the program skips the final if statement, which is causing the program to set the coffee to the base price instead of prompting for another try if the value isn't in the array.
import...
sorry for the misunderstanding, what i meant was that declaring the variable in the for loop is how i have seen people doing it, only that the class i'm taking will count my answer wrong if i do that...
Line 60 is
System.out.println(averages[i]);
i am not sure what is wrong with it.
so far as declaring i inside the loop, i have noticed that is how everyone shows it in tutorial videos but...
I have some homework and thought that i got it correct. but when i compile i get the below error. it shows up after i enter my 8 numbers. Also fair warning, i'm not sure why some of the lines aren't...
Awesome, got it compiled and ran it with the correct results. just had to change input into the s. Thank you!
Thanks for the quick response and the formatting information!
I am having some trouble with my programming fundamentals class lab. I am getting errors and i can't figure out what is wrong. I'm not sure what the proper etiquette is for posting code so i am sorry...