What We Did Today
- Reviewed classes and methods
- Set up our SchoolSystem project
Homework
Reminder: Our next class is on Wednesday 7/9.
Create a folder in your Google Drive called Jun2_SchoolSystem. Upload the files student.py, teacher.py, classroom.py, staff.py, and main.py to this folder.
- Make sure to do the code in your SchoolSystem project
- In your student.py file:
- Create a Student class. It will have 3 attributes: name, age, and grade
- Create a teacher.py file. (Make sure it’s within the src folder)
- Create a Teacher class. It will have 3 attributes: name, age, and subject_of_expertise
- Create a classroom.py file. (Make sure it’s within the src folder)
- Create a Classroom class. It will have 3 attributes: class_name, class_type, and size
- Create a staff.py file. (Make sure it’s within the src folder)
- Create a Staff class. It will have 5 attributes: name, phone, email, age, and duty
- In your main.py file:
- Import the Student, Teacher, Classroom, and Staff class.
- (You can look at the GroceryItem Class and see how we imported it into the GrocerySystemWithClass project)
- Note: We’re only making classes, not objects, for this homework.
- Other
- Add any missing parts of your class notes from our class notes (see link at bottom)
- Review the homework answers (see link at bottom)
Notes
- You can reach out via allison@ayclogic.com if you have any questions.
- Class notes and previous homework answers can be found here: Link to Google Drive