American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

5 PM – Intro to Java – Joel

May 13 @ 5:00 pm - 6:00 pm

Today we did:
  1. We continued learning about for loops.

 

Homework:
  1. Make a class called May13_ReviewHomework.
  2. Make a list called shoppingCart.
  3. Ask the user to input how many items they want to add to the shopping cart.
  4. 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.
  5. Loop through all the items and print the items for each.
  6. Make a list called animals.
  7. Make a forever loop, and inside ask the user to input an animal. Add it to the list.
  8. If the user inputs ‘exit’, then break out of the loop.
  9. 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)

Details

Date:
May 13
Time:
5:00 pm - 6:00 pm