(a) Define programming language. (b) Write the 5 following mathematical expressions in BASIC notation: (i)

COMPUTER
WAEC 2014

(a) Define programming language.

(b) Write the 5 following mathematical expressions in BASIC notation:

(i) x (w + y)\(^2\) (ii) ab/cd (ii) p = 2 (1+b).

(c) Write a simple BASIC program to calculate the area (A) of a rectangle with length (l) and breath (b).

(d) List two levels of programming language.

Explanation

(a) A programming language is a formal language for communicating with a computer without the ambiguity Of human language.

A programming language has to be executed by a computer or design of the language degenerates in a futile intellectual exercise.

(b) (i) x(w +y)\(^2\) = x * (W+ Y)^2

(ii) ab/cd = A * B/C * D

(ii) P= 2(l + b) = P =2 * (L + B)

(C) 10 REM CALCULATE AREA OF A RECTANGLE

20 INPUT LENGTH", L

30 INPUT BREADTH", B

40 LET A= L * B

50 PRINT "AREA", A

60 END

(d) Low level language e.g machine language and Assembly language. - High level language eg Algebraic formula Type processing and String and list processing.



Post an Explanation Or Report an Error
If you see any wrong question or answer, please leave a comment below and we'll take a look. If you doubt why the selected answer is correct or need additional more details? Please drop a comment or Contact us directly. Your email address will not be published. Required fields are marked *
Add Math
Don't want to keep filling in name and email whenever you make a contribution? Register or login to make contributing easier.