Everything works so far but I want to make my code so that the user can reenter the grade if he/she enters a grade too high or too low the first time. Here is my code so far:
HW_Grades = []for jj = 1:4 HW_Prompt = input('What are your grades on your 1st-4th HW assignments? (Enter a number between 5 and 15, then press enter, and repeat); '); if (HW_Prompt < 5); disp('Your grade is too low'); end if (HW_Prompt > 15); disp('Your grade is too high'); endHW_Grades(jj) = HW_Prompt;endHW_Total = sum(HW_Grades)
Best Answer