- This event has passed.
5 PM – Intro to Java – Joel
April 15 @ 5:00 pm - 6:00 pm
Today we did:
- We continued with if statements and learned how to compare strings, as well as the ! operator.
Homework
- Create a new file called April15_BooleanHomework
- Make an integer variable called height.
- If the height is between 150 and 200, print “You are the perfect height to ride this ride!”
- Make String variable called weather, and make a traffic_jam. traffic_jame will contain a string either “true” or “false”.
- If either the weather is “rainy” or traffic_jam is “true”, print “I don’t feel like going out today.”
- Make a new String variable called sport. Set it to any sport you want.
- If the sport is “basketball” (Ignore the case), then print “Basketball is my favorite sport!” Else, print “<sport> is alright too.”
- Make a new String variable called game_day. It will contain a day of the week.
- Make a new int variable called game_time. If will contain any integer that can be a time (for example, 6 PM)
- 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!”