NBKRIST Java Hub

← Back to Exam Panel

Problem Statement: Student Results System

Your task is to create a simple Java program to manage student results. This problem is designed to help you practice creating a well-structured class with its own data and behavior, applying the fundamental concept of **encapsulation**.

Functional Requirements

Technical Requirements

Testing Requirements

Your main method must demonstrate the program works by testing the following scenarios:

  1. Passing Student (Grade A): Create a `Student` object with scores like 95, 90, and 92. The output should show the correct average and an 'A' grade.
  2. Average Student (Grade C): Create a `Student` object with scores like 70, 75, and 72. The output should show the correct average and a 'C' grade.
  3. Failing Student (Grade F): Create a `Student` object with scores like 55, 45, and 50. The output should show the correct average and an 'F' grade.