Question: For this java project, you will create a Java program for a school. The purpose is to create a report containing one or more classrooms.
For this java project, you will create a Java program for a school. The purpose is to create a report containing one or more classrooms. For each classroom, the report will contain: The room number of the classroom. The teacher and the subject assigned to the classroom. A list of students assigned to the classroom including their student id and final grade. ApplicationStructureProject should be organized in a directory. Create a directory called LastNamesP1 (replaceLastNames with last name of group members) The following shows the directory and files you should have: LastNamesP1 DirectoryDisplayable.java (15 points)Create Displayable interface. The interface should declare one method as follows: public abstract String display ()Person.java (15 points)Create Person class. Make it an abstract class. Declare the following instance variables:String firstNameString lastNameInclude the getter and setter methods for each variable. Use the camelcasenaming convention for methods and variables. Include a method namedgetFullName() that returns both names concatenated into a String with space between the first and last name.Teacher.java (15 points)Create the Teacher class. It inherits the Person abstract class and implements the Displayable interface. It defines only one variable as follows:String subjectInclude the getter and setter methods for the variable. Use the camelcasenaming convention. Provide a constructor that uses the following parameters to initialize the variables:String firstNameString lastNameString subjectOverride the display() method. It should return a String containing the teachersname using the getFullName() method defined in Person and the subject taught as follows:Student.java (15 points)Create the Student class. It inherits the Person abstract class and implements the Displayable interface. It defines two variables:int studentIdint finalGradeInclude the getter and setter methods for the variables. Use thecamelcase naming convention. Provide a constructor that uses thefollowing parameters to initialize the variables:String firstNameString lastNameint studentIdIntfinalGradeOverride the display() method. It should return a String containing thestudents id, the students name using the getFullName() method definedin Person, and the students final grade as follows: Student ID: 1 John Doe Final Grade: 90Classroom.java (15 points)Create the Classroom class. It inherits the Person abstract class andimplements the Displayable interface. It defines three variables:int roomNumberDisplayable teacher (note that the Teacher instance is downcastto the Displayable interface) ArrayList
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
