How to loop a question when answer is negatve?
Hey guys I am trying to make this program that checks what your final grade is. I managed to make it work pretty well for someone new to java.
When you run the program your suppose to put the grade you got for the tests and stuff and it will then calculate your grade.
Now I am trying to make it so if a person puts a negative answer then it will ask the question again. I tried making a do while loop, but for some reason it keeps looping the first question non stop.
Can anyone help me make the program loop a question if the answer is negative or isn't a positive double? (a1, a2, t1, etc.)