3 a)
function owner(name,age,gender) {
this.name = name;
this.age = age;
this.gender = gender;
}
function car(make, model, year, owner) {
this.make = make;
this.model = model;
this.year = year;
this.owner = owner
}
rand = new owner(Jack,30,M)
car1 = new car("Eagle", "Talon TSi", 1993, rand);
6 b)
// Database credentials
static final String USER = "username";
static final String PASS = "password";
public static void main(String[] args) {
Connection conn = null;
CallableStatement stmt = null;
try{
//STEP 2: Register JDBC driver
Class.forName("com.mysql.jdbc.Driver");
7 b)