American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

7 PM – Intro To Java

December 2, 2021 @ 7:00 pm - 8:00 pm

Homework
  1. Create a Java file Dec2OOPHomework.java
  2. Copy the 2 methods from last week’s homework.
  3. Create method “run” which will display below menu continuously and depending on what the user choose, will either call “favoriteSport” or “convertFromFahrenheighToCelcius”.
  4. Select below:
    1. Enter your sport
    2. Convert Fahrenheit to Celcius
    3. Exit
    Enter your selection (1,2 or 3): 1
    
    Enter a sport name: Basketball
    Basketball is not my favorite sport.
    
    Select below:
    1. Enter your sport
    2. Convert Fahrenheit to Celcius
    3. Exit
    Enter your selection (1,2 or 3): 2
    
    Enter a temperature in Fahrenheit: 100
    100 Fahrenheit is 37.77 Celcius.
    
    Select below:
    1. Enter your sport
    2. Convert Fahrenheit to Celcius
    3. Exit
    Enter your selection (1,2 or 3): 3
    Bye bye

Details

Date:
December 2, 2021
Time:
7:00 pm - 8:00 pm
Event Categories:
,
Verified by MonsterInsights