Answer:
b) I, II, III
Explanation:
Since the two components are added to the 'east' and 'west', and the JPanel has a BorderLayout manager, then North, South and Center parts of the JPanel will appear.
In my basement so the children won’t escape
Answer:
Explanation:
There is a lot of needed information that is missing in this question including all of the instance variables, what methods are required and what they need to do. The following code is a rough estimate of some of the basic methods and instance variables that are needed based on the information provided in the question.
package sample;
public class StudentReserve {
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
String name, id;
int studentReservePrice, reservedDays;
public void StudentReserve(int numOfDays) {
this.reservedDays = numOfDays;
}
public String toString() {
System.out.println("A Student ID is required");
return null;
}
public int getStudentReservePrice(int regularReservePrice) {
this.studentReservePrice = regularReservePrice / 2;
return studentReservePrice;
}
}