
- This event has passed.
5 PM – Intro to Java – Joel
May 13 @ 5:00 pm - 6:00 pm
Today we did:
- We continued learning about for loops.
Homework:
- Make a class called May13_ReviewHomework.
- Make a list called shoppingCart.
- Ask the user to input how many items they want to add to the shopping cart.
- For that amount of items, ask the user to input names of items (“bread”, “bag”, etc.). Add the items to the shoppingCart list each time.
- Loop through all the items and print the items for each.
- Make a list called animals.
- Make a forever loop, and inside ask the user to input an animal. Add it to the list.
- If the user inputs ‘exit’, then break out of the loop.
- Once you break out of the loop, loop through the list and print the items, but using a for loop with index (not for each)