American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

9 PM – Intro To Python – Indo – Joel

August 23 @ 9:00 pm - 10:00 pm

Gamas Sub

Today We Did
  1. We fixed a lot of codes in dominic_final_project.py
  2. We removed a lot of code duplications.
  3. We consolidate penguin functions into one whole_penguin function.
  4. We went over the aug_15_robux_shopping_cart.py
Homework
  1. Finish dominic_final_project.py by Aug 24 morning. After you upload the file, ask your mom to WhatsApp Mr. Gamas Chang.
  2. Continue on aug_15_robux_shopping_cart.py. Change the program so you will have initial “robux_amount” which is 300. And everytime you purchase an item, deduct the “robux_amount”.And also after user exit, print out all items you purchased and the remaining robux.
    1. 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: 3
      You only have 50 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
      5. Exit
      Enter your selection: 5
      
      You have purchased the following items:
      1. Hat
      2. Hair
      Your remaining Robux balance is 50 Robux.

Details

Date:
August 23
Time:
9:00 pm - 10:00 pm
Verified by MonsterInsights