If anyone can help me figure out what I'm doing wrong, that'd be great! I'm new to coding and am trying to figure it out on the fly. I'm trying to create a program that will calculate the student grade percentage (I have that part figured out) and then also give them the letter grade. I'm running into issues on the looping and can't figure out how to get it to say anything under an A-. Here is what I have so far: (The strike throughs are supposed to be showing that the calculation was saved as a variable)
:ClrHome
:Input "NUMBER OF 4:",E
:Input "NUMBER OF 3.5:",F
:Input "NUMBER OF 3:",G
:Input "NUMBER OF 2.5:",H
:Input "NUMBER OF 2:",I
:(E+F+G+H+I) >N
:100(91E=.95F+.9G+.8H+.7I)/N)>L
:round(L,1)—>P
:If P≥93
:Then
:Output(7,12,"A")
:Output(8,12,P)
:Else:If 90≤P≤92.9
:Then
:Output(7,12,"A-")
:Output(8,12,P)
:Else:If 87≤P≤89.0
:Then
:Output(7,12,"B+")
:Output(8,12,P)
:Else:If 83≤P≤86.9
:Then
:Output(7,12,"B")
:Output(8,12,P)
:Else:If 80≤P≤82.9
:Then
:Output(7,12,"B-")
:Output(8,12,P)
:Else:If 77≤P≤79.9
:Then
:Output(7,12,"C+")
:Output(8,12,P)
:Else:If 73≤P≤76.9
:Then
:Output(7,12,"C")
:Output(8,12,P)
:Else:If 70≤P≤72.9
:Then
:Output(7,12,"C-")
:Output(8,12,P)
:Else:If 67≤P≤69.9
:Then
:Output(7,12,"D+")
:Output(8,12,P)
:Else:If 63≤P≤66.9
:Then
:Output(7,12,"D")
:Output(8,12,P)
Right now the final screen when I run the program will give me the correct percentage, but the grade is incorrect. If they received an A, it will show an A, but anything less than that is showing up as an A-. I'd really love any suggestions I can get. Thanks!