A simple Java console application to collect student names, student IDs, and grades from user input, calculate pass/fail status, and print results.
input.javaprompts the user for the number of students, then reads each student's name, ID, and grade.Calculation.javaevaluates each student's grade and marks whether they passed.Output.javadisplays the student information with name, ID, grade, and pass/fail status.Main.javaconnects the steps and runs the application.
- Run
Main.java. - Enter how many students you want to add.
- Provide each student's name, ID, and numeric grade.
- The program prints each student's record and whether they passed.
- Passing is currently defined as a grade of 60 or higher.
- The application uses a
StudentRecordclass to store and pass student data between components.