Question 1

OCR Computer Science June 2022 Algorithms and problem solving (H046-02)AS17 marks

On the specification

(a)
2.1 Elements of computational thinking
(b)
2.2 Problem solving and programming
(c)
2.2 Problem solving and programming
(d)
2.2 Problem solving and programming
(e)
2.2 Problem solving and programming
(f)
2.2 Problem solving and programming
Question text

1 Ruhail owns ten different function rooms which can be hired by different business customers to hold meetings. He would like a program to manage the booking process of each room. Customers should be able to enter the date they want to hire a function room, and then a list of available rooms will be displayed. Customers can then select which room they want to hire. Customers can then enter their payment details which are then checked and then a confirmation email is sent to the customer. (a) Complete the structure diagram below to show the different component parts of the problem. Function rooms Check Choose Check availability room payment Check payment details [4] (b) Ruhail will make use of an Integrated Development Environment (IDE). State the purpose of an IDE. [1] (c) State two different programming constructs and give an example of how Ruhail could use each construct when creating his program code. 1 2 [4] (d) Ruhail will test his program code to make sure that it works correctly. State two test strategies that Ruhail could use. 1 2 [2] (e) Ruhail will make use of a software development life cycle methodology. State two software development methodologies that Ruhail could consider using. 1 2 [2] (f) Ruhail has been told to make use of reusable components when creating his program code. Explain two benefits of using reusable components when writing program code. 1 2 [4]