Free account: track your progress — Sign up free

WAEC Computer Studies 2021 Theory — Question 11

Question 11 of 11 from the West African Examinations Council (WAEC) Computer Studies 2021 Theory paper, with the correct answer and a full explanation.

Advertisement

5. Write a BASIC program to grade any score entered from the keyboard as either 'Poor' for a score that is below 50% or 'Satisfactory' for a score that is equal to or above 50%. The program execution should stop as soon as a score that is less than zero is entered.

Model answer

10 REM program to grade entered scores 20 CLS 30 Score = 0 40 DO UNTIL Score < 0 50 INPUT "Enter a score:"; Score 60 IF Score < 50 THEN 70 PRINT "Poor" 80 ELSE 90 PRINT "Satisfactory" 100 END IF 110 LOOP 120 END (Alternative, using SELECT CASE): DIM Score AS INTEGER DO UNTIL Score < 0 INPUT "Enter a score:"; Score SELECT CASE Score CASE 50 TO 100 PRINT "Satisfactory" CASE 0 TO 49 PRINT "Poor" END SELECT LOOP END

Advertisement

Sign up free to unlock

  • Score tracking
  • Practice history
  • Saved questions
  • Progress dashboard
  • Personalized sessions
  • Weak-topic breakdown

…and/or go further with premium services and No Ads.