subject
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​

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 01:00
Mastercard managers are motivated to increase (1) the number of individuals who have and use a mastercard credit card, (2) the number of banks and other clents who issue mastercards to customers and/or employees, and (3) the number of locations that accept mastercard payments. discuss how mastercard could use its data warehouse to it expand each of these customer bases.
Answers: 3
question
Computers and Technology, 24.06.2019 11:00
The program below has been generalized to read a user's input value for hourlywage. run the program. notice the user's input value of 10 is used. modify that input value, and run again. generalize the program to get user input values for workhoursperweek and workweeksperyear (change those variables' initializations to 0). run the program. monthsperyear will never change, so define that variable as final. use the standard for naming final variables. ex: final int max_length
Answers: 2
question
Computers and Technology, 24.06.2019 20:30
Where is permanent data in the computer stored whenever gym starts his laptop he sees some commands in numbers appearing on the screen these instructions are being preceded by the control unit in
Answers: 1
question
Computers and Technology, 25.06.2019 01:30
What was the advantage of using transistors instead of vacuum tubes in the second-generation computers? a. computers were drastically reduced in size. b. computers no longer produced errors. c. computers became affordable. d. computers could run on electricity.
Answers: 1
You know the right answer?
Time: 2 hrs i.
Course Code: CSC 121. Course Title: Elements of Computer Programming
INSTR...
Questions
question
Physics, 23.11.2019 00:31
Questions on the website: 13722367