American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

3 PM – Python OOP – Allison

July 2 @ 3:00 pm - 4:00 pm

What We Did Today

  1. Reviewed classes and methods
  2. 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.

  1. Make sure to do the code in your SchoolSystem project
  2. In your student.py file:
    1. Create a Student class. It will have 3 attributes: name, age, and grade
  3. Create a teacher.py file. (Make sure it’s within the src folder)
    1. Create a Teacher class. It will have 3 attributes: name, age, and subject_of_expertise
  4. Create a classroom.py file. (Make sure it’s within the src folder)
    1. Create a Classroom class. It will have 3 attributes: class_name, class_type, and size
  5. Create a staff.py file. (Make sure it’s within the src folder)
    1. Create a Staff class. It will have 5 attributes: name, phone, email, age, and duty
  6. In your main.py file:
    1. Import the Student, Teacher, Classroom, and Staff class.
    2. (You can look at the GroceryItem Class and see how we imported it into the GrocerySystemWithClass project)
  7. Note: We’re only making classes, not objects, for this homework.
  8. Other
    1. Add any missing parts of your class notes from our class notes (see link at bottom)
    2. Review the homework answers (see link at bottom)

Notes

  1. You can reach out via allison@ayclogic.com if you have any questions.
  2. Class notes and previous homework answers can be found here: Link to Google Drive

Details

Date:
July 2
Time:
3:00 pm - 4:00 pm
Event Categories:
,