« All Events
6 PM – Intro To Python – Gamas
March 1, 2022 @ 6:00 pm - 7:00 pm
Homework
- If you did not do the homework last week, please do it.
- Continue with Mar1_RobuxShoppingCart.py
- Add code to make sure user has enough robux before making purchase. If user does not have enough Robux, then it will print
- You only have 50 robux remaining. Therefore you cannot purchase <item_name> for <item_price> robux.
- Add code to make sure when user select “4. Add more robux”, you ask user how much Robux they want to add and add it into the robux balance
-
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:4
ADD MORE ROBUX
How much robux you want to add: 1000
Now you have 1300 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: