Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

**In Java and add comments** This assignment can be done individually or as a group of up to three students. Only one student should turn

**In Java and add comments**

This assignment can be done individually or as a group of up to three students. Only one student should turn in the assignment but all students in a group should at least submit a comment indicating who was in their group and specifying who is responsible for turning in the assignment. All members of a group should be able to explain any code that has been turned in by the group. For any classes you create (or update), be sure to include a header comment highlighting the private and public fields and methods and a brief description of its functionality. This assignment is not just about getting the code working. In addition to comments within your code, you are also expected to add comments following your code that explains any results obtained based on the different test cases you used to test your constructors and methods. This is particularly important If the code does not work or is incomplete.

Do the following:

Suppose you have been assigned the task of computerizing the Central Michigan database. To do this, you decide to first design a prototype capable of storing up to 10 students or faculty members as follows:

Create an Address class that contains the following fields: street_address, city, state, and zipcode. Provide a constuctor and class methods that allow you to set and get the values of the class fields.

Create an abstract Person class that contains the following data members: name, phone_number and Address and an abstract method called DisplayPerson. Provide a constructor and class methods that allow you to set and get the values of the class fields.

Create a Student class that is a derived class of the abstract Person class and that contains the following additional fields: global_id and gpa. Provide constructor and class methods that allow you to set and get the values of all the class fields.

Create a Faculty class that is a derived class of the abstract Person class and that contains the following additional fields: global_id and rank. Provide constructor and class methods that allow you to set and get the values of all the class fields.

Provide a main program that thoroughly tests your database by utilizing ArrayList objects to store your objects.

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

Database Concepts

Authors: David Kroenke

4th Edition

0136086535, 9780136086536

More Books

Students also viewed these Databases questions