Today We Do
- We continued with SchoolApplication.
- We created Teacher class
- We added Add New Student feature and added into the List of students.
Homework
- Add code to do “2. Add a teacher”. Store the newly added teacher to a List<Teacher> new attribute. This feature is very similar to “1. Add a student”.
- Also try to do code for “5. List all students”. In here you have to use for loop to go through each element inside “students” list. Look at example below
School System:
1. Add a student
2. Add a teacher
3. Find student
4. Find teacher
5. List all students
6. List all teachers
7. List all students map
8. List all students order by firstName
9. List all students order by Age reverse
10. Quit
Enter your selection:1
What is your student's name? Gamas Chang
What is your student's age? 100
What is your student's grade? 10
What is your student's School Name? Gabrielino Highschool
Is your student a good listener? True or False: true
A new student has been created: Gamas Chang
School System:
1. Add a student
2. Add a teacher
3. Find student
4. Find teacher
5. List all students
6. List all teachers
7. List all students map
8. List all students order by firstName
9. List all students order by Age reverse
10. Quit
Enter your selection:1
What is your student's name? Amanda
What is your student's age? 13
What is your student's grade? 8
What is your student's School Name? Temple City High
Is your student a good listener? True or False: true
A new student has been created: Amanda
School System:
1. Add a student
2. Add a teacher
3. Find student
4. Find teacher
5. List all students
6. List all teachers
7. List all students map
8. List all students order by firstName
9. List all students order by Age reverse
10. Quit
Enter your selection:5
Gamas Chang - 100 years old - grade 10
Amanda - 13 years old - grade 8