American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

10 AM – AI/ML – Joel

June 7 @ 10:00 am - 11:00 am

Today we did:
  1. We were introduced to AI, computer vision, and how to use Kaggle.
Homework:
  1. In the copy of the Lesson_1_Homework notebook you guys created in the class, follow the instructions in the cells.
  2. Additionally, here are the requirements for the ShoppingCartApplication:
  3. Create the menu for the user to enter their selection. The menu should ask them, “what do you want to purchase?”, and show all the options. The options are:
    1. Milk – $5
    2. Eggs – $4
    3. Orange Juice – $6
    4. Bread – $7
    5. Snack – $8
    6. I am done, checkout please
  4. Create a items_inventory dictionary that stores the number of the item as the key, and the item name as the value. For example, “1”:”Milk”. Do this for all the items.
  5. Similarly, create an item_price dictionary that stores the number of the item as the key, and the price as the value.
  6. Set the money = 0, and create a shopping_cart list that will store the items the user buys.
  7. Now, your job is to make sure that the menu is displayed, and if the user selects anything not in the options, print “Invalid selection, please try again”.
  8. If the user selects any item from 1-5, add the price of the item to the total money, and add the item name to the shopping cart. Print “You have purchased <item> for $<price>”.
  9. Remember that this program should keep looping and only exit the loop if the user selects “6”.
  10. When the user checks out by selecting “6”, print “You have purchased <amount of items in the shopping cart> items: “
  11. Display all the items in the shopping cart.
  12. Print a “thank you” statement of your choice, telling the user how much they have to pay in total.

Once you are done with the homework, you can send the link of your Kaggle notebook to my email. My email is joel@ayclogic.com.

If you’re not sure how to share your notebook, here is how:

On the top right, you should see a share button.

 

 

 

 

 

 

 

 

 

Click on the share button, and it should take you to this page. Select ‘public’.

 

 

 

 

 

 

 

 

 

 

Then, click ‘save’. Put any version name you want, it doesn’t matter.

 

 

 

 

 

 

 

 

 

 

 

 

Finally, instead of the Save & Run All (Commit) option, select Quick Save.

 

 

 

 

 

Once you select Quick Save, click ‘save’ on the bottom right again. It should take you back to the notebook.

Once you are in the notebook, wait for a few seconds until the bottom left finishes loading. Then, click the share button on the top right again, and you should see a link that you can copy, like this:

 

 

 

 

 

 

 

 

 

 

 

Copy the link in the Public URL section, and put it in the email that you will send to me.

If you have any questions, feel free to email me at joel@ayclogic.com.

Details

Date:
June 7
Time:
10:00 am - 11:00 am
Verified by MonsterInsights