The content is just an excerpt from the complete note for SS2 Third Term Computer Studies Lesson Note – Basic Programming. Check below to download the complete DOCUMENT

WEEK 6.                                                       

TOPIC: BASIC PROGRAMMING (II)

CONTENT:

(a)Built –in functions: (i)SQR (ii)INT (X) (iii) SIN (X) (iv)ABS (X) (v)RND (X) (vi)TAN (X) (viii)LOG (X) (ix) EXP (X) (b)BASIC notation of : (i)√b2 -4ac2a (ii) (x-y)/(x+y) (iii) (a+b) + c/Sin d (iv)ex+y –Sin (x+ny), (v)b = 1/4ac, etc. (c)BASIC  program to: (i)find square root of numbers within a given range (ii)find square root ,S, round up to an integer (iii) find the cosine of known values (iv) find the tangent of a given angle (d)Definition of (i)internet (ii)some basic terms :browse, browser, chartroom,  cybercafé, cyber space, download-mail, home page, HTML, HTTP, internet service provider, intranet, upload, protocol, web page and website (e)Internet main browser: (i)Internet explorer (ii)Netscape Navigator (iii)Opera (iv) Firefox, etc.

Sub-Topic 1:  BASIC BUILT –IN FUNCTIONS

These are Mathematical functions that are built into BASIC. Some common BASIC functions are shown in the table below:

FUNCTION MEANING
SQR (X) Square root of X
INT (X) Convert numeric value X to interger.
SIN (X+Y) The Sine of the sum of X and Y.
ABS (X) The absolute value of X.
RND (X) Round up X to specified number of decimal places.
 TAN (X) The tangent of X
LOG (X) The natural Logarithm of X
EXP (X) The exponential of X

BASIC notation/symbols.

(i)√b2 -4ac/2a

Solution: ((b^2-4*a*c)^(1/2))/(2*a) or ((b**2-4*a*c)^(1/2))/(2*a)

(ii) (x-y)/(x+y)

Solution: (x-y)/(x+y)

(iii) (a+b) + c/Sin d

To gain full access to the note: DOWNLOAD FILE

Copyright warnings! Do not copy.