American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

3 PM – Introduction To Java

March 14, 2020 @ 3:00 pm - 4:00 pm

  1. We went over last week homework. Data Type and how to get input from shell.
  2. We also went over IF ELSE ELSE IF statements today.
  3. Homework:
    1. Create a new Java class in intelliJ: Mar14_HomeworkIFELSE
      1. Inside this Java class, get Integer/Number input from user “Give me a number? “
      2. After you get the input, print whether or not this number is a positive or negative number.
      3. For example, if user enters -4, the program will print “-4 is a negative number” to the shell. If user enters 1000, the program will print “1000 is a positive number”.
    2. In the same Java class, do the following
      1. Ask user to input their age. “How old are you? “
      2. If users enter age less than 10, print “You can watch this movie for free”.
      3. if user enter age less than 20, print “You have to pay $5”.
      4. if user enter age bigger than 60, print “You can watch this movie for $2”.

 

Details

Date:
March 14, 2020
Time:
3:00 pm - 4:00 pm
Event Category: