RECAP QUIZ
Egg Order Task
Read about DOCTESTING
More about Doctest
Python Tutorial: if __name__ == '__main__'
Example 1 - Car
Write a class definition for a Car class that contains information about the average kilometres per litre that it can achieve and the volume of its petrol tank.
Write an instance method that returns the typical/standard distance the car can be driven on a full tank. Include a doctest that tests a sample input.
In your main routine create two instances of the class and print the typical range for each. The first car should typically average 20 kpl (kilometres per litre) and have a tank volume of 100 litres.
The second car should average 24 kpl and have a tank volume of 80 liters.
TASKS 1 - 4 (basketball, movie, country, cellphone)
Graphical Cake Bakery Download
Data Abstraction/Graphical Cake explanation
Handout Pages 25 - 44