- This event has passed.
6 PM – Intro To Python – Gamas
August 17, 2022 @ 6:00 pm - 7:00 pm
Homework
- Continued on Aug10_RobuxSystem.py
- Add code so you can keep track of all items purchased.
- Add code so when user exit, the program needs to print all items purchased and also print the remaining robux money.
- Also add ability to add more Robux when user enter “4”.
- Look at examples:
-
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: 4 Enter Robux you want to add: 1000 Now you have 1050 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: 5 You have purchased the following items: 1. Hat 2. Hair Your remaining Robux balance is 1050 Robux.