Computer Science · Oct / Nov 2024 · Paper 2 HL · Question 16
IBCS
As printed in the paper
The question as text
16. The Trip class is shown in Figure 10. A trip may be classified as an adventure trip, a service trip or a culture trip based on certain characteristics. Hence, three new classes AdventureTrip, ServiceTrip and CultureTrip must be created. y Adventure trips require students to be physically fit and bring trekking shoes. y Service trips require students to have good communication skills. y Culture trips require students to bring a camera. Figure 10: UML diagram of the Trip class <Trip class> - tripNumber: int - tripTitle: String - tripDesc: String - spotsFilled: int - isRunning: boolean - tList: ArrayList <String> + updateSpotsFilled() + addStudentToTripList(Students) + getters() + setters()
Read automatically from the paper; the printed page above is exact.
Show the answer and mark scheme
16(a)(i)[5]
16(a)(ii)[1]
16(a)(iii)[4]
16(a)(iv)[1]
16(b)[4]
Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.

