Question: Java 1 Please make sure to test the program with different courses and grades no error to see the algorithm works fine. People at College

Java 1

Please make sure to test the program with different courses and grades no error to see the algorithm works fine.

People at College

  1. Objective

In this project, you'll create several classes using inheritance and polymorphism. This will require you to create abstract method and class. There won't be any exciting UI here, just some output of array data.

  1. Structure
  2. There are two types of college people: Students and Teachers.
  3. All people have an ID, Name, and Email.
  4. All IDs have validation rules, but rules differ:
    • Students - 9 digits;
    • Teachers - 6 alphanumeric.
  5. For Students, we want to maintain a list of courses taken (up to 30 courses) and associated grades; we want to obtain overall grade averages as well.
  6. For Teachers, we record courses they have taught (up to 50); we want a way to add courses to that list.

Person

-id : String

-name : String

-email : String

Constructors

+Person(id : String, name: String)

+Person(id : String, name: String, email : String )

Accessors

+getId() : String

+getName() : String

+getEmail() : String

Mutators

+setId(id : String)

+setName(name: String)

+setEmail(email : String)

Other Methods

+isValidId(id : String) : Boolean

+toString() : String

+test()

** isValidId() method should be an abstract.

An UML class diagram

Java 1Please make sure to test the program with different courses and

\f

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!