General Directions Use proper Java naming conventions All in
General Directions
Use proper Java naming conventions.
All input and output in this lab must use JOptionPane (except where otherwise noted).
From now on it will be assumed that each class you create will have private instance variables and any necessary getters and setters. I will no longer explictly ask you to create these.
Be sure to implement toString() for each class.
Think carefully about how to organize the input/output for this lab *before* you begin coding.
The Address Class
An address has a street number, street name, city, state or province, and country.
The Person Class
A Person has a name and an Address (represented by an object of class Address, not a String). Note that the subclasses of Person inherit the fields and methods of Person. You may need to override some of the methods in the subclasses.
The Student Class
Student is a subclass of Person. In addition to the data inherited from Person, a student has CIN number and a course schedule represented by an ArrayList of Courses (objects of class Course). You must provide ways for a Student to add an existing Course.
The FacultyMember Class
FacultyMember is also subclass of Person. A FacultyMember has an employee id number and a teaching schedule, which is an ArrayList of Courses. Provide a way to assign a FacultyMember to teach an existing Course.
The Course Class
A course has a course identifier (eg, EE-132) and a course title (Intro to Electrical Engineering).
Driver Class
Write a Driver class that maintains lists of Students, Courses, and FacultyMembers and has a menu that provides ways to list them and to create them and add them to the list. Provide ways to delete Students and FacultyMembers and for Students and FacultyMembers to add and delete Courses from their course schedules. However, you do not need to provide a way to delete a Course from the list of Courses.
Include a method that can be called from main that will use your methods to add and delete some hard-coded test data (several students, several faculty members, and several courses.) This will let you code the lists and test the methods to add and delete items without using the user input functions.
Do not create a new Course when a Student adds or when a faculty member is assigned to teach; let the user choose a Course from the list.
Turn in your .java files and an executable .jar on CSNS. Make sure the executable .jar works correctly.
Solution
public class adress extends pearson
{
praivate int streetnumber,
praivate string city, state , province ,country;
public address(int streetnumber,string city,string state,string province,string country)
{
this.streetnumber=streetnumber;
this.city=city;
this.state=state;
this.province=province;
this.country=country;
public string getcity()
{
return city; }
public int getstreetnumber(){
return streetnumber;}
public string getcity(){
return city;}
public string getcountry(){
return country:}
}
public class course extends pearson{
praivate int courseid;
priavate string coursetitle;
public int course(int courseid,string coursetitle){
this.courseid=courseid;
this.coursetitle=coursetitle;
public int getcourseid(){
return courseid;
public int getcoursetitle(){
return coursetitle;}
}

