Computers and Technology
Computers and Technology, 08.06.2021 21:30, uhhgray

Time: 2 hrs i.
Course Code: CSC 121. Course Title: Elements of Computer Programming
INSTRUCTION: Answer Four (4) Questions only
Jlca
)
Define an Algorithm and explain its properties [3% marks!
(b) Write an Algorithm to withdraw money from a Savings Account using automated teller
machine; assume that the minimum balance allowed by the Bank is N2000. 15 masks)
(c) Draw a flowchart for the algorithm in lb.[3 marks)
(d) Use the FOR-TO-NEXT statement to write a program to compute the total and average
scores of 10 students offering 5 subjects per student. [6 marks]
2() Write the QBASIC expression for the following algebraic equations:
A = | Sin x - Tan y (3xy + 2(6x - 2y) ü. M = 2Sint
2Sin(x + y) Cox
ZGM : Sin *+Cos y
N = k/2222
iv. M=
[2 marks each)
(b) Given A=20; B = 16; C = A*B; D= VC Evaluate each of the following operations (6man
(i) S= (C > D) OR (D<A) (ii) X= NOT (CD) AND B<C (iii) Y = (B^2) MOD A
(iv) X = SQR (B*2) A
Distinguish between logical operation and relational operation (use examples to illustrate yo
marks)
3 (a) What is Error? Explain the different types of error in programming [6marks]
(b) Draw a flowchart to generate the sequence
[3 marks/
(c) Write a QBASIC program to find the difference between the sum of all even numbers and
iii.
c?
2ay
16
N
1
2'3
N
follodd numbere between 1 and
16 16marks​

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 15:20, brookemcelhaney
The north and south regions had very diferent economies in the 1800s.
Answers: 1
image
Computers and Technology, 24.06.2019 00:50, anthonycraig0205
3. what is the output of the following statements? temporary object1; temporary object2("rectangle", 8.5, 5); temporary object3("circle", 6, 0); temporary object4("cylinder", 6, 3.5); cout < < fixed < < showpoint < < setprecision(2); object1.print(); object2.print(); object3.print(); object4.print(); object1.set("sphere", 4.5, 0); object1.print();
Answers: 1
image
Computers and Technology, 24.06.2019 19:50, joThompson
Which is a characteristic of free and open-source software licenses? a. the source code is unavailable to everyone b. the source code is available only to the government c. the source code is available to all users d. the source code is constantly modified
Answers: 1
image
Computers and Technology, 24.06.2019 22:30, juicyx39
In writing a paper for his english class, gavin quoted an author of the book. what should he include in his paper to credit the source? citation caption header entry
Answers: 1
Do you know the correct answer?
Time: 2 hrs i.
Course Code: CSC 121. Course Title: Elements of Computer Programming
INSTR...

Questions in other subjects: