NBKRIST Java Hub

← Back to Exam Panel

Problem Statement: Student Grade Calculator

Your task is to create a simple Java program to calculate a student's grade. This problem is designed to help you practice using **classes**, **objects**, and **encapsulation** to create a well-structured solution.

Functional Requirements

Technical Requirements

Testing Requirements

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

  1. Passing Student (Grade A or B): Create a `Student` object with scores that result in a high passing grade (e.g., 95, 90, 88). The output should show the correct average and grade.
  2. Failing Student (Grade F): Create a `Student` object with scores that result in a failing grade (e.g., 40, 45, 50). The output should show the correct average and an 'F' grade.