- This event has passed.
2 PM – Intro To Python – Gamas
January 8, 2022 @ 2:00 pm - 3:00 pm
Today We Do
- We finished Dec1_ShoppingCart.py project.
- We started Jan8_RobuxShoppingCart.py project.
Homework
- If you guys are not done with your turtle project, I will extend the deadline until Jan15. This is 20% of your grade. Email your result to gamas@ayclogic.com. If you need help, please feel free to email me or to ask your parents to schedule an extra class.
- Continue on Jan8_RobuxShoppingCart.py project, make sure your project can do the following. Keep track of the items that the user purchase. Keep track of the amount of Robux user has.
-
Welcome to Robux Bank, you have 300 robux in the beginning. What do you want to do: 1. Buy hat 100 Robux 2. Buy hair 150 Robux 3. VIP Server 500 Robux 4. Add more Robux 5. Exit Enter your selection: 1 You purchased a Hat. You have 200 robux remaining. What do you want to do: 1. Buy hat 100 Robux 2. Buy hair 150 Robux 3. VIP Server 500 Robux 4. Add more Robux 5. Exit Enter your selection: 2 You purchased a Hair. You have 50 robux remaining. What do you want to do: 1. Buy hat 100 Robux 2. Buy hair 150 Robux 3. VIP Server 500 Robux 4. Add more Robux 5. Exit Enter your selection: 3 You only have 50 robux remaining. Therefore you cannot purchase VIP Server for 500 robux. What do you want to do: 1. Buy hat 100 Robux 2. Buy hair 150 Robux 3. VIP Server 500 Robux 4. Add more Robux 5. Exit Enter your selection: 5 You have purchased the following items: 1. Hat 2. Hair Your remaining Robux balance is 50 Robux.