A school has a computerised library system that allows students to borrow books for a fixed length of time. The system uses text files to store details of students, books and loans. A new module is to be written which will generate emails to each student who has an overdue book.
- (a)Decomposition will be used to break down the problem of designing the new module into sub-problems. Identify three program modules that could be used in the design and describe their use. Module 1 Use Module 2 Use Module 3 Use[3]
- (b)(i)The program designer produces a structure chart for the new module. Part of the structure chart is shown: Module-B() Module-A() Module-C() Module-D() Explain the relationship between the four modules shown.[2]
- (b)(ii)Two new modules are added: Module-X() and Module-Y(). • Module-X() has no parameters. • Module-Y() will take a string and a real number as parameters and return a Boolean value. • Module-D() will call either Module-X() or Module-Y(). Draw only the part of the structure chart that represents the relationship between Module-X(),Module-Y() and Module-D().[3]
This question uses a diagram from the original paper, which isn't shown here. Open the full paper from the past papers archive to see it.
Mark scheme
Marking points from the official mark scheme (May/June 2023). The mark or mark type is shown in brackets.
- [3] Examples include: Module: GetOverdueLoan() Use: Identifies an overdue book Module: IdentifyStudent() Use: Identifies a student (with an overdue book)1 Module: GetStudentEmail() Use: Gets the email address of a student with an overdue book Module: CreateEmail() Use: Generates an email to a student with an overdue book Module: SendEmail() Use: Sends an email to a student with an overdue book One mark for name and use Note: Max 3 marks
- [2] One mark per point: • Module-A calls the other three modules • The process is repeated
- [3] One mark per bullet point: • All rectangles correctly labelled and interconnected • All and only parameters as shown • Selection diamond
Write your answer and get it marked
On Oracle Prep you can write or photograph your own answer and have it marked by AI against this mark scheme, with feedback on what you missed.
Sign up free →