(a) State two BASIC programming keywords. (b) Write the following equations in BASIC format: (i) I = PRT/100: (ii) Y= AX\(_2\) +BX+C; (iii) Y= MX + C (c) Wr...

Assessment: WAEC SSCE - Computer Studies - 2016 (Essay) Subject: Computer Studies

Question 1 Report

(a) State two BASIC programming keywords.

(b) Write the following equations in BASIC format:

(i) I = PRT/100: (ii) Y= AX\(_2\) +BX+C; (iii) Y= MX + C

(c) Write a BASIC program that accepts mass and volume of a liquid as input from the User.

The program should compute.and display the density of the liquid. Density = mass volume

Answer Details

(a) Two BASIC programming keywords

  1. INPUT (used to receive data from the user).
  2. PRINT (used to display output on the screen).

(Other acceptable keywords: LET, REM, IF, THEN, FOR, END.)

(b) The equations in BASIC format

  • (i) \(I = \dfrac{PRT}{100}\) is written as I = (P * R * T) / 100
  • (ii) \(Y = AX^2 + BX + C\) is written as Y = A * X ^ 2 + B * X + C
  • (iii) \(Y = MX + C\) is written as Y = M * X + C

(c) BASIC program to compute the density of a liquid

Density is mass divided by volume, \(D = \dfrac{mass}{volume}\).

10 REM PROGRAM TO CALCULATE DENSITY OF A LIQUID
20 INPUT "ENTER MASS"; M
30 INPUT "ENTER VOLUME"; V
40 D = M / V
50 PRINT "DENSITY OF THE LIQUID = "; D
60 END

Download The App On Google Playstore

Everything you need to excel in your exams

Green Bridge CBT Mobile App
Personalized AI Learning Chat Assistant
200,000+ Exam Questions Across IGCSE, JAMB, WAEC & NECO
Over 3,900 Lesson Notes
Offline Support - Learn Anytime, Anywhere
Green Bridge Timetable
Literature Summaries & Potential Questions
Track Your Performance & Progress
In-depth Explanations for Comprehensive Learning