Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Blackboard Con... Central Michigan U.. Official Site of The... Microsoft Office Ho... x Watch TV ON Turn in the paper at the end of class

image text in transcribed
Blackboard Con... Central Michigan U.. Official Site of The... Microsoft Office Ho... x Watch TV ON Turn in the paper at the end of class and, Submit the archive of the project to BB (see instruction attached) In this lab, we will create a project using multiple classes, ArrayList, inheritance, and interface to manage students information. 1. Class Person Create a new abstract superclass called Person that includes a private String variable for the name and an appropriate variable for the age. Write Constructors, setters, getters, and toString methods. 2. Class Student Extends the Person class and implements the Graduate interface. It also has private instance fields: globall and major, String type; hours Completed, Int type, for the credit hours already completed Override Java's default object.toString() in the Student class to return string like: Alex has completed 39 hours. He has another 81 credit hours to go (The content in BOLD and Italic should be from variables or method call) Write Constructors, setters, getters, toString method and any other method as needed. 3. Interface Graduate public interface Graduate int totalHoursNeeded = 120; // for the total credit hours needed for graduation & getting a degree int hoursToGraduate()://return the remaining credit hours needed for graduation You may add more members in the interface if needed. 4. Class Student Group Use an ArrayList of type Student to manage the information of a group of students Write the following methods for managing the info: add method, to add a student object to the list. remove method, to remove a student from the list according to the globali getAverage HoursCompleted, to return the average hours completed from all students . toString method, overrides the default one and returns information of all students. It should call the toString method in the Student class to get detail info for each student. 5. Class Outer Main Create a student group, perform the following minimum operations create at least 5 students and add them to the group remove a student by the globali. print out the information of all students in the group print out the average hours completed O Bte | msi

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

Hands-On Database

Authors: Steve Conger

2nd Edition

0133024415, 978-0133024418

Students also viewed these Databases questions