American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

4 PM – Intro To Python – Gamas

January 30, 2021 @ 4:00 pm - 5:00 pm

  1. We completed Supermarket program.
  2. Homework:
    1. Create a similar program, Robux Balance, that will do the like example below. Don’t worry about feature “4 Add more Robux”. We will do this together in the class next week. I want you guys to do the code for number 1, 2,,3 and 5 like example below.
    2. 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 have purchase Hat for 100 Robux, 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 have purchase Hair for 150 Robux, 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: asdf
      Invalid selection please try again
      
      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 2 item(s) : 
      Hat
      Hair
      
      You have 50 robux remaining.
      Please play again next time.

Details

Date:
January 30, 2021
Time:
4:00 pm - 5:00 pm
Event Categories:
,