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, 22.06.2019 12:40
In a response of approximately 50 words, explain why it would be essential for the successful a/v technician to participate in additional coursework, presentations and seminars offered by equipment manufacturers as well as annual conferences attended by colleagues in the industry.
Answers: 1
question
Computers and Technology, 22.06.2019 17:40
Write a modular program (no classes yet, just from what you learned last year), that allows two players to play a game of tic-tac-toe. use a two-dimensional char array with 3 rows and 3 columns as the game board. each element of the array should be initialized with an asterisk (*). the program should display the initial board configuration and then start a loop that does the following: allow player 1 to select a location on the board for an x by entering a row and column number. then redisplay the board with an x replacing the * in the chosen location. if there is no winner yet and the board is not yet full, allow player 2 to select a location on the board for an o by entering a row and column number. then redisplay the board with an o replacing the * in the chosen location. the loop should continue until a player has won or a tie has occurred, then display a message indicating who won, or reporting that a tie occurred. player 1 wins when there are three xs in a row, a column, or a diagonal on the game board. player 2 wins when there are three ox in a row, a column, or a diagonal on the game board. a tie occurs when all of the locations on the board are full, but there is no winner. input validation: only allow legal moves to be entered. the row must be 1, 2, or 3. the column must be 1, 2 3. the (row, column) position entered must currently be empty (i.e., still have an asterisk in it).
Answers: 1
question
Computers and Technology, 22.06.2019 19:20
Terri needs to insert a cover page into her document. where should she go to access the commands to do so? o insert tab, objects group o insert tab, illustrations group o insert tab, pages group o insert tab, media group submit
Answers: 1
question
Computers and Technology, 23.06.2019 00:00
What engine component is shown in the above figure?
Answers: 1
You know the right answer?
Time: 2 hrs i.
Course Code: CSC 121. Course Title: Elements of Computer Programming
INSTR...
Questions
Questions on the website: 13722359