Note AcademyNote Academy

Computer Science · May / June 2019 · Paper 2 HL · Question 17

IBCS

As printed in the paper

The question as text

17. The organizing school arranges for visiting students to stay with a host family. The information about each of the visiting students is stored in a file. The student records are sorted by name. Some of the other variables included are school, gender, age and host family name, as shown in the UML diagram below. Visitor - String name - String school - char gender - int age - String hostFamily … more variables + constructors + accessor and mutator methods A program needs to be written to match visiting students with host families. The matching process requires data to be manipulated extensively (adding, editing, deleting). The file will be read into RAM. This program will be used for different events with different numbers of visitors. Therefore, it will be implemented using a dynamic data structure.

Read automatically from the paper; the printed page above is exact.

Show the answer and mark scheme
  • 17(a)[1]

  • 17(b)[2]

  • 17(c)(i)[1]

  • 17(c)(ii)[4]

  • 17(d)[4]

  • 17(e)[2]

  • 17(f)[6]

Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.