CSC 232 - Introduction to Computer Science II
Lab 1
Lab Objectives
After completing this lab, you should be able to
Write a program that uses an input dialog box to read a student's name, a BufferedReader object to read the student's age, and an option dialog box to read the student's level in college (freshman, sophomore, junior, senior, and graduate student). Use a loop to make sure that the user does not close the option dialog box without making a selection. Whenever the user closes the option dialog box without making a selection, display an error message and then show the option dialog box again.
Format the output using the exact number of spaces needed for name and level, and 3 spaces for the age. Output should be displayed in a message dialog box and read like "19 years old Josh is a sophomore". Do not display the quotes.
When you are done, demonstrate your code to the instructor, hand-in a hard copy of the source code, and upload your solution in your CSC232 upload folder in a folder called LABS\lab1.