You must complete Program Development to unlock this Lesson.

BASIC PROGRAMMING LANGUAGE

CONTENT

  1. BASIC Built-in Functions
  2. BASIC Notation/Symbols
  3. BASIC Programs to Solve Problems

 

BASIC Built-in Functions

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

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

Solution: (a+b) + c/Sin (d)

(iv)ex+y –Sin (x +ny)

Solution: (e^x+y- Sin(x+n*y))

(v) b = 1/4ac

Solution: b=1/4 (a*c)

(vi) A=∏r²

Solution: PI*r**2 or PI*r^2

 

EVALUATION

  1. What is the meaning of these BASIC functions? LOG, TAN, and ABS.
  2. Which Mathematical operator has two notations in BASIC?

 

BASIC Programs to Solve Problems

Example 1: Write a BASIC program to find the square root of numbers within a given range.

Lesson tags: Computer Science Lesson Notes, Computer Science Objective Questions, SS2 Computer Science, SS2 Computer Science Evaluation Questions, SS2 Computer Science Evaluation Questions Third Term, SS2 Computer Science Objective Questions, SS2 Computer Science Objective Questions Third Term, SS2 Computer Science Third Term
Back to: COMPUTER SCIENCE/ICT – SS2 > Third Term
© [2022] Spidaworks Digital - All rights reserved.
error: Alert: Content is protected !!