NBKRIST Java Hub

← Back to Exam Panel

Problem Statement: Simple Student Report Card

Your task is to create a basic Java program that represents a student's report card. The goal is to learn how to create a **class**, instantiate it to create an **object**, and then use that object to perform a simple task.

Functional Requirements

Technical Requirements

Testing Requirements

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

  1. Passing Student: Create a student object with scores that should result in a passing grade (e.g., Math: 80, Science: 75, English: 90). The output should correctly show a passing status.
  2. Failing Student: Create a second student object with scores that should result in a failing grade (e.g., Math: 40, Science: 35, English: 45). The output should correctly show a failing status.