Professional Documents
Culture Documents
Week-1 Teaching A Level Computer Science OOP Activities: Activity1
Week-1 Teaching A Level Computer Science OOP Activities: Activity1
Activity1:
2. Explain why strings in Python could be considered as a
built-in object using an example.
1|Page
Activity 2:
1. Table below shows the costs for Pizza.
Pizza_Choice Small Medium Large
Cheese & £8.99 £10.99 £12.99
Tomato
Ham & £8.99 £10.99 £12.99
Mushroom
BBQ Chicken £8.99 £10.99 £12.99
Hawaiian £8.99 £10.99 £12.99
Pepperoni £8.99 £10.99 £12.99
Mexican £8.99 £10.99 £12.99
Chicken
Vegetarian £8.99 £10.99 £12.99
Vegetarian £8.99 £10.99 £12.99
Hot
Here is the start to our Pizza class, type this code and save it.
Activity 3:
2|Page
Continuing on from activity 2 we have added a new method cost()
2) After completely typing the code run the program. Does your
program run properly if not what do you think is the problem? Debug
the code.
3) What do you think will be the total for customer2’s order? Do you
think it has been calculated correctly? If not give your reasons.
Activity 4:
3|Page
1. If a customer chooses “yes” for toppings then an additional cost
of £2.50 is included in total. Amend this information to Pizza
class.
2. Orders over the total cost of £12 are eligible for free delivery
but if not an addition £2.00 is added to the total cost.
3. On weekends Pizza prices are increased by 1.50 for pizza of all
sizes. Include this information when calculating total.
4|Page