Question

Write an application that models courses, students, and faculty members in a university.

General Directions
•Use proper Java naming conventions.
•All input and output 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.

The Person Class

A Person has a name and an Address (represented by an object of class Address). 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. A student has CIN number, and a course schedule represented by an ArrayList of Courses.

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.

The Address Class

An address has a street number, street name, city, and state.

The Course Class

A course has a course identifier , a course title , a term represented by a String , and an instructor, which is a reference to a FacultyMember.

Driver Class

Write a Driver class that maintains lists of Students, Courses, and FacultyMembers and has a menu that provides ways to list, create, and delete them based on user input. The driver class should also provide a way for a student to add and drop existing Courses and a way to assign faculty member to teach existing Courses. 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. Think about how to organize this input before you start coding.

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 code the lists and the methods to add and delete items without using the user input functions.

Solution Preview

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.

public Student(String CIN) {
       this.CIN = CIN;      
       course_schedule = new ArrayList<>();
    }

    public String getCIN() {
       return CIN;
    }

    public void setCIN(String CIN) {
       this.CIN = CIN;


    public void setTerm(String term) {
       this.term = term;
    }

    public void setTitle(String title) {
       this.title = title;
    }

    @Override
    public String toString() {
       if (instructor == null) {...

This is only a preview of the solution. Please use the purchase button to see the entire solution

$23.00

or $1 if you
register a new account!

Assisting Tutor

Related Homework Solutions

Java Programming: Stack & Queue
Homework Solution
$40.00
Programming
Java
Coding
Computer Science
Data Sets
Stack
Queue
Matrix
Circular Array
Algorithm
Duplicates
Sequences
Test Files
Random Functions
Mathematicians
Josephus Problem
Statements
Variables
Bellman-Ford Algorithm in Java
Homework Solution
$40.00
Programming
Computer Science
Java
Bellman-Ford Algorithm
Matrix
Cost
Distance
Iterations
Loops
Conditions
Vertices
Edges
Paths
World Puzzle Problem & Arrays in Java
Homework Solution
$60.00
Java
Programming
Codes
Algorithms
Arrays
Word Puzzles
Input
Output
Running Time
Integers
Loops
Maximum Count
Divide And Conquer Method
Statements
Variables
Recursive Calls
Experimenting with ArrayList
Homework Solution
$30.00
Java
Programming
Computer Science
Subsequence
ArrayList
Loops
Elements
Conditions
Boolean
Functions
Methods
From BS Tree to AVL Tree in Java
Homework Solution
$20.00
Java
Programming
Codes
Algorithms
Binary Search Tree
AVL Tree
Search Operation
Logarithmic Time
Rebalancing
Loops
Statements
Variables
Successors
Ancestors
Parents
Nodes
Edges
Boolean Values
Data Structures
Odd Numbers Problem in Java
Homework Solution
$10.00
Java
Programming
Computer Science
Mathematics
Integers
Odd Values
Even Values
Output
Input
Range
Loops
Conditions
Statements
Samples
Get help from a qualified tutor
Live Chats