American Young Coder (AYC)

Loading Events

« All Events

  • This event has passed.

10 AM – Python OOP – Indo – Gamas

November 11, 2023 @ 10:00 am - 11:00 am

Today We Did
  1. We created sat_9_am_school_system pycharm project
  2. We added add teacher, list all teachers.
  3. We added Student.get_info()
  4. We added default teachers list for testing purposes.
Homework
  1. Inside teacher.py, add get_info(self) method. This is very similar to Student.get_info() and use this Teacher.get_info() inside the main.py list_all_teachers() method.
  2. Also inside main.py, add add_default_students() this is similar to add_default_teachers().
  3. Add “3. Find Student” feature. It should behave like this
    1. Please select one of the following
      1. Add Student
      2. List all students
      3. Find student
      4. Add Teacher
      5. List all teachers
      Enter your selection (Enter "exit" to quit): 2
      
      LIST ALL STUDENTS
      Joshua - 6 years old and grade 12
      Russell - 6 years old and grade 11
      
      Please select one of the following
      1. Add Student
      2. List all students
      3. Find student
      4. Add Teacher
      5. List all teachers
      Enter your selection (Enter "exit" to quit): 3
      
      FIND STUDENT
      Enter student name: Joshua
      Joshua - 6 years old and grade 12
      
      Please select one of the following
      1. Add Student
      2. List all students
      3. Find student
      4. Add Teacher
      5. List all teachers
      Enter your selection (Enter "exit" to quit): 3
      
      FIND STUDENT
      Enter student name: Gamas
      We do not have 'Gamas' in our system.
      
      Please select one of the following
      1. Add Student
      2. List all students
      3. Find student
      4. Add Teacher
      5. List all teachers
      Enter your selection (Enter "exit" to quit):

Details

Date:
November 11, 2023
Time:
10:00 am - 11:00 am
Verified by MonsterInsights