American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

5 PM – Intro to Java – Joel

April 15 @ 5:00 pm - 6:00 pm

Today we did:
  1. We continued with if statements and learned how to compare strings, as well as the ! operator.
Homework
  1. Create a new file called April15_BooleanHomework
  2. Make an integer variable called height.
  3. If the height is between 150 and 200, print “You are the perfect height to ride this ride!”
  4. Make String variable called weather, and make a traffic_jam. traffic_jame will contain a string either “true” or “false”.
  5. If either the weather is “rainy” or traffic_jam is “true”, print “I don’t feel like going out today.”
  6. Make a new String variable called sport. Set it to any sport you want.
  7. If the sport is “basketball” (Ignore the case), then print “Basketball is my favorite sport!” Else, print “<sport> is alright too.”
  8. Make a new String variable called game_day. It will contain a day of the week.
  9. Make a new int variable called game_time. If will contain any integer that can be a time (for example, 6 PM)
  10. If game_day is not Thursday and the game_time is not 7 PM, print “It’s not time to watch the basketball game, you’re free to do what you want!”

Details

Date:
April 15
Time:
5:00 pm - 6:00 pm