Module 2 - Lab - Student Classification

 Objective

Your objective is to design a class that outputs a student's college classification year based on the number of credit hours they have accomplished.

Classification of a student as a freshman, sophomore, junior, or senior is determined based on credit hours earned. In an undergraduate degree program, a student is classified according to hours earned as follows:

Freshman - 0-29 hours;

Sophomore - 30-59 hours;

Junior - 60-89 hours;

Senior - 90 or more hours.

Note - the student class must have a function to return the student classification. Your driver program should show the example output once the user has entered the student name and hours accomplished.

 

Program User prompts:

  1. Student Full Name

  2. The number of hours accomplished.

Example Program outputs

Student Name: Fred Flintstone (Senior) - Hours Completed: 95

 Deliverables

Upload the following files in a zip folder that you have created:

  1. Java class files

  2. Screenshot of the Console with the code executing

 

COSC-1437 / ITSE-2457 Computer Science Dept. - Author: Dr. Kevin Roark