American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

6:00PM – Python OOP -Joshua

October 16 @ 6:00 pm - 7:00 pm

Today We Did

Reviewed Practice Final

Homework: Fix your practice final
Inheritance Practice/IN the book

  1. Page 168 to 170: Copy Codes
  2. Page 173, 9-6 and 9-7

 

Jacob

  • Driver Class
    • fix your get_trip_time
      • Make sure it doubles if it is in rush hour
      • actually return how long the trip takes
  • New York
    • Due that inheritance thing ( look at the 168-170 for examples)
      • import driver
      • add the (driver) to end of the class
      • fix your __init__
      • get trip time is fine (you don’t need to make it an int())
  • Driver System
    • __init__
      • put the dictionary and menu in there (don’t forget self)
    • application_loop
      • while true
      • ask for what option what from the menu
      • if/elif statement for each option
        • under each if/elif, make sure it looks like the example

Justin

  • Put everything into a while loop for application loo
    • Try to use functions to make look neater
  • clean up your __init__
    • self.menu not menu
    • selection goes in the application loop
  • Driver Class:
    • fix how you calculate your trip time (find out how many hours it takes to do a tribe
      • make sure to actually return your trip time
    • Make type a “defined variable” meaning not in the () (also needs to change your main to reflect)
  • New York Driver Clas
    • Use inheritance to fix your new your driver class
    • also , calcuate your trip time correctly
    • Make type a “defined variable” meaning not in the () (also needs to change your main to reflect)
  • Quick warning, when you make changes to your driver, such as adding the return, its going to change your main
  • int() <—— distance is a number not a string (hint hint inputs)

 

Details

Date:
October 16
Time:
6:00 pm - 7:00 pm