American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

4 PM – Indo – Intro to Java – Joel

November 29, 2024 @ 4:00 pm - 5:00 pm

Today we did:
  1. We continued learning methods.
Homework:
  1. Continue with the SchoolSystem, and do the following:
    1. Finish making the attributes in the class. Remember that while in Python attributes are created in the constructor, you simply create them in the class in java. In this case, make all of these attributes private: Make a Scanner object, a menu (you can find below), and a list for teachers called teacherList.
    2. Since the run() method is the starting point of the program, make a while true loop, and inside the loop, print the menu and ask for input. If input equals “quit”, break out of the loop.
    3. Here is the menu (you can also use triple quotes for menus in Java):
    4. """
                  \nSchool System:
                  1. Add a student
                  2. List all students
                  3. Find student
                  Enter your selection (enter 'quit' to exit): """;

Details

Date:
November 29, 2024
Time:
4:00 pm - 5:00 pm
Verified by MonsterInsights