Write a program composed of an Interface class Students.java having the necessary
variable declarations and setters and getters methods to represent the following
information for students: name, surname, yearClass, course, GPA. Define the interface
class in OneStudent.java class. Then write an Abstract class Deprtaments.java that its
constructor will instantiate an ArrayList myStudents to store all Students objects. This
class should also have a setter and getter method for handling the arraylist. Then create
the ComputerScience.java and ComputerEngineering.java classes that will extend the
Departments abstract class. Finally, create the University.java class that will prompt the
user to choose from a menu one of the following:
Create a new student and based on his course add him into the appropriate
department. (Tip: each department will have an arraylist for their student, each
time a new student is to be entered, get the arraylist, add the student and the set
the arraylist back to the deprtment.)
Choose a department to display all its students’ information.
Choose a department to display the average GPA of its students.
Find a student based on his name and surname. Display all student’s info
otherwise display that the student does not exist.
Choose a classYear to display all students on that year from both departments,
separating them based on their department.
Exit program
1
Expert's answer
2012-05-24T08:14:16-0400
Unfortunately, your question requires a lot of work and cannot be done for free. Submit it with all requirements as an assignment to our control panel and we'll assist you.
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment