I'm currently working on a project for school that allows the user to calculate the lowest grade they can get on their final exam (NeededPercent(1 To 8) as Integer) and still recieve their desired score(DesiredScore(1 To 8) as Integer).

What the user does is enter their first quarter grade (FirstQuarter(1 To 8) as Integer), second quarter grade(SecondQuarter((1 To 8) as Integer) and desired semester score. The program then uses the equation

((1stQuarter*.4)+(2ndQuarter*.4))+(FinalExamScore*.2) = SemesterGrade

to figure out what they need on their final.

My question was that I get an error when I try to use a textbox to get the user to input the value of their quarter grades and desired final score. I think the problem is that I'm putting numbers in a text box; is this the likely problem?