Programming
5 questions. Open a question to solve it and check the official answer.
Constructs · 7 marks · official answer ready
(b) Write pseudocode to implement the program. You should note the following: • InString contains the string to be checked. It has been assigned a value. • The elements of the arr…
Constructs · 2 marks · official answer ready
(iii) Describe how the computer uses the parity byte to perform a further check on the received data bytes. .......................................................................…
Programming basics · 4 marks · official answer ready
(b) Write program code to generate and output four winning numbers. Ignore the issue that duplicate numbers may be generated. Visual Basic and Pascal: You should include declarati…
Structured programming · 3 marks · official answer ready
(c) The prize draw is a success. After six months, the club decided to sell an unlimited number of tickets each week. In any week, the total number of prizes may vary. The program…
Constructs · 1 mark · official answer ready
(iii) The programmer coded this algorithm above and the user successfully entered 15 dispenser records into the text file. There is data for another 546 dispensers which needs to …
