American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

6 PM – Intro To Java – Darin

January 8 @ 6:00 pm - 7:00 pm

Today We Did:

  1. Started with the Monster Inheritance project in Java
  2. Introduced the concept of inheritance in Java

Homework:

  1. HOMEWORK:
    1: Initialize 4 monsters before you enter the while loop.
    You can use a method, or do it directly inside of run before the while loop.
    
    2. Implement selection.equals("3").
        2.1 Prompt the user for their name, and store it in a private variable of the class
        2.2 Prompt the user for their health, store it in a private variable of the class
    
        print the following:
    
        Welcome to AYCLOGIC Monster Hunt, <name>!
    
        Please select the monster you wish to hunt:
        Hydra - 100 health - 100 max attack
        Phoenix - 1000 health - 100 max attack
        Enter the monster species: dhjfhasdkjfh
    
        Invalid monster, please try again.
    
        Please select the monster you wish to hunt:
        Hydra - 100 health - 100 max attack
        Phoenix - 1000 health - 100 max attack
        Enter the monster species: hydra
    
        What do you wish to do with the HYDRA?

    note: we use .toUpperCase() at the end of the print out^

Notes:

If you have any questions, feel free to email me at ddjapri@ayclogic.com

Details

Date:
January 8
Time:
6:00 pm - 7:00 pm
Event Categories:
,
Verified by MonsterInsights