Computer Science · May / June 2018 · Paper 2 SL · Question 11
IBCS
As printed in the paper
The question as text
11. The details of hotel stays during the current year are stored in the variable allVisits which is an array of the Visits class. allVisits is used in determining the total points awarded in the current year. The Visits class is outlined below: public class Visits { private String hotelCode; // id of the hotel private int days; // number of days of the visit public Visits(String h, int d) { hotelCode = h; days = d; } public int getDays() { return days; } }
Read automatically from the paper; the printed page above is exact.
Show the answer and mark scheme
11(a)[3]
11(b)(i)[1]
11(b)(ii)[1]
11(b)(iii)[1]
11(c)[5]
11(d)[7]
11(e)[4]
11(f)[3]
Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.

