Computer Science · May / June 2025 · Paper 2 TZ3 HL · Question 17
IBCS
As printed in the paper
The question as text
17. The owner of the art shop would like to keep a record of their customers. The following shows part of the code for the Customer class: public class Customer { private String customerName; private String customerAddress; private int maximumBudget; public Customer (String customerName, String customerAddress, int maximumBudget()) { this.customerName = customerName; this.customerAddress = customerAddress; this.maximumBudget = maximumBudget; } public int getMaximumBudget(){ return maximumBudget; } // additional accessor and mutator methods exist but are not shown public String toString() { return "Name: " + customerName + ", Address: " + customerAddress + ", Maximum Budget: " + maximumBudget; } } // end of class Customer
Read automatically from the paper; the printed page above is exact.
Show the answer and mark scheme
17(a)[2]
17(b)[5]
17(c)(i)[2]
17(c)(ii)[5]
17(c)(iii)[4]
17(d)[2]
Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.

