- This event has passed.
5:30 PM – Intro To Python – Gamas
March 3, 2023 @ 5:30 pm - 6:30 pm
Homework
- Continue on Feb24_RobuxShoppingCart.py
- Add codes so your program can have these 2 features
- It will not allow to make purchase if you do not have enough robux
- You will be able to add 200 robux if you enter the right credit card number ABCD1234.
- If you do it correctly, it will do the following
-
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 Enter your selection. Enter “done” when finish: 3 You only have 300 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 Enter your selection. Enter “done” when finish: 4 Enter your Credit Card number: asdfasd You have entered an invalid credit card number 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 Enter your selection. Enter “done” when finish: 4 Enter your Credit Card number: ABCD1234 Thank you for purchasing 200 Robux. You now have 500 robux remaining.