Advanced Programming
Making custom classes

Unit 2, Day 2

Mr. Jones | Computer Programming, Advanced

Warmup

Come on in - sit anywhere you like

Prepare for the class/object quiz

Best way to practice is with the stafish/vampire game

Quiz - Answer these on a sheet of paper

  • Imagine that you are writing a Python program for a zoo that contains lions and sloths. Assume that these classes have already been defined.
    • The class Lion has these functions:
      • eat(food)
      • roar()
    • The class Sloth has these functions:
      • sleep(time)
      • squeak()
  • On a sheet of paper, do this:
    • Write code to create two lion objects and two sloth objects.
    • Write four function calls - write one call to each of the functions listed above

Announcements

Upcoming Schedule

  • Pep Rally this Friday - no WP

Congrats to Micah - Boolean Girl Program

Sisters Rise Up

Girls in Tech

Amazon Future Engineer

Brain Scans end early next week

Guest Speaker - Monday during A lunch

Mastercard, BRGs, and Hispanic Heritage Month

Strategy Consulting - Gathering Information From Data

Today’s class is short, and no WP:

  • 1st Period: 8:20 - 9:30 (70 mins)
  • 3rd Period: 9:35 - 10:20 (45 mins)
  • 5th Period:
    • 10:25 - 11:05 (40 mins)
    • B Lunch: 11:10 - 11:45 (35 mins)
    • 11:50 - 12:25 (30 mins)
  • 7th Period: 12:30 - 1:40 (70 mins)
  • Pep Rally: 1:55 - 3:10
    • Go straight home from pep rally - can’t come back into the building!

Today - Making our own classes

Let’s write the lion and sloth classes

Recap Unit 2, Day 2

This is a recap slide

(To be completed)

More recap

(Coming soon)