Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a class recording application in Java that allows the user to do the following: Enter the College and Program Enter the Course (Subject) Details

Create a class recording application in Java that allows the user to do the following:

Enter the College and Program

Enter the Course (Subject) Details

Enter/modify the assign instructor (faculty)

Add/modify the list enrolled students

Display the added students

Display the student sorted by name

Load/store the class record information into a file

Information needed:

College: college code, college name

Program: program code, program name

Course (Subject): subject code, subject id, subject name, units

Instructor(Faculty): faculty id, name (first name, middle name, last name), highest degree

Student: student no, name(first name, middle name, last name), gender, course enrolled (e.g. BSIT, BSCS)

Define a class Person which contains the common fields and methods of the Student and Faculty

In class Person, declare an abstract method getCompleteName() with no parameter and the return type is String

In class Person, define also 2 constructors. One constructor can accept the First name & Lastname as arguments while the other constructor can accept the First name, Middle name, & Last name as arguments

Define the classes for Student and Faculty which inherits the class Person.

The complete name of the student has this format: Lastname, Firstname M.I.

The complete name of the faculty has this format: First name M.I. Lastname, Degree

Define all the possible constructors for both classes

The two classes cannot be subclassed

Define ClassList interface, this interface has a Constant that handles the maximum number of students per record which is 40

It also contains interface methods for the following operations: assigning of college, assigning of program, assigning of instructor, adding a student, removing a student, displaying all students, and displaying the class record

The interface also has a default method that returns the school name (University of Nueva Caceres)

Define a class for Class record that contains the fields to handle all information needed and implements all the operations of a Class Record

The ClassList interface should be implemented by this class for Class record

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database 11g SQL

Authors: Jason Price

1st Edition

0071498508, 978-0071498500

More Books

Students also viewed these Databases questions