Lab 1: Name Tag Java Program

Due Date and Submission Requirements


The goal of this lab is:


Background and Directions

The career fair is approaching! You will write a program that will a print out a simple name tag for you. Your name tag will consist of 1. Your name, 2. Your Class (freshman, sophomore, junior, senior), 3. Your major, and 4. Expected graduation date (you can make this up if you don't know this yet).

You will create a Java class, named Lab1.java (make sure you check the box for public static void main(String[] args) when you create your class). In your java class, your name tag will be printed to the screen using a series of System.out.println() statements. Here is an example name tag:

        +------------------------------------------------+
        |           Name: Reese Pearsall                 |
        |                                                |
        |           Class: Sophomore                     |
        |                                                |
        |           Major: Computer Science              |
        |                                                |
        | Expected Graduation: Spring 2026               |
        +------------------------------------------------+
    

Required Output

When your program is run, your name tag should get printed out to the screen. It should look very similar to the output seen in in this screenshot (obviously your name tag will have your information).

Grading (10 points)