top of page
PROGRAMMING CHALLENGES
Online Shopping Cart
Difficulty:
2 Medium
2.6 OOP
Topic:
Write a class ShoppingCart with attributes items (a list) and totalPrice. Include a method addItem() to add an item to the cart and update the total price.
The constructor should initialize the attributes, and addItem() should update both the items list and the totalPrice attribute.
Need help with your programming skills?
If you need more help than just independent practise, then we're here for you. Book a 1:1 with us and we will be able to guide you to becoming a proficient programmer who can tackle any of the challenges an exam board can throw at you.
1 hr
50 British pounds1 hr
55 British pounds
bottom of page