![]() | Join Date: Feb 2008 | Posts: 9 | Location: TN |
Some QuickBasic Help please?
Im writing a program for class. I'm a beginner programmer (Computer Science Major).
Its a grade averaging program. I have this so far
SUM% = 0
COUNT% = 0
INPUT "ENTER A GRADE: ", GRADE
WHILE GRADE >= 0 AND GRADE <= 100
COUNT% = COUNT% + 1
PRINT "GRADE ENTERED WAS"; GRADE
SUM% = SUM% + GRADE
INPUT "ENTER A GRADE: ", GRADE
END WHILE LOOP
Im stuck after the end while loop, it gives me an error
Heres the pseudocode:
initialize sum and count to zero
prompt for and read grade
while grade >= 0 and grade <= 100
count = count + 1
echo print grade with label
sum = sum + grade
prompt for and read grade
end while loop
average = sum / count
print average, sum , count with labels
stop
Any help would be great! Thanks!
Its a grade averaging program. I have this so far
SUM% = 0
COUNT% = 0
INPUT "ENTER A GRADE: ", GRADE
WHILE GRADE >= 0 AND GRADE <= 100
COUNT% = COUNT% + 1
PRINT "GRADE ENTERED WAS"; GRADE
SUM% = SUM% + GRADE
INPUT "ENTER A GRADE: ", GRADE
END WHILE LOOP
Im stuck after the end while loop, it gives me an error
Heres the pseudocode:
initialize sum and count to zero
prompt for and read grade
while grade >= 0 and grade <= 100
count = count + 1
echo print grade with label
sum = sum + grade
prompt for and read grade
end while loop
average = sum / count
print average, sum , count with labels
stop
Any help would be great! Thanks!








Linear Mode
