(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
Explanation
(a) BASIC programming keywords: REM, LET, END, CLS, INPUT, IF, NEXT, DATS, GOSUB, RETURN, DIM, STOP, GOTO, READ etc.
(b)(i) I = P*R*T/100
(ii) Y =A"X ^2 +B X+C OR Y = A*X * X + B* X + C (ii) Y = M * X +C
(c) A Sample BASIC Program
10 CLS 20 REM BASIC program to calculate density of a liquid 30 INPUT
"Enter the mass of a liquid. MASS 40 REM Computation of values begins
50 LET DENSITY = MASS/VOLUME
60 PRINT "The density of a liquid":
DENSITY 70 END/STOP
10 CLS
20 REM BASIC program to calculate density of a liquid
30 INPUT "MASS"; M
40 INPUT "VOLUME"; V
50 LET DENSITY = M/V50
60 PRINT"DENSITY =" DENSITY
70 END