American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

5 PM – Intro To Python – Gamas

December 11, 2024 @ 5:00 pm - 6:00 pm

Today We Did
  1. We finished oct_30_grocery_shopping_cart.py program
Homework
  1. Create dec_11_robux_shopping_cart.py
  2. Create a program that will look like below. This is very similar to oct_30_grocery_shopping_cart.py
  3. 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: 1
    You only have 50 robux remaining. Therefore you cannot purchase Hat for 100 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.
  4. Make code change inside your last week homework nov_20_turtle_green_grapes_hw.py
    1. change grape_tree(x,y) to grape_tree(x,y,color)
    2. Inside the grape_tree(x,y,color) function, make sure you use the “color” parameter.
    3. Call the function 3 times with a different coordinates and different colors (green, red and purple). If you do it correctly, you should see below result

Details

Date:
December 11, 2024
Time:
5:00 pm - 6:00 pm
Verified by MonsterInsights