Skip to content

Student Report Card System #8

Open
@Pankaj-Str

Description

@Pankaj-Str

Objective

Create a Java application that accepts student details and their marks in various subjects, calculates the total and percentage, determines the pass/fail status, and assigns grades if the student passes. The application should handle input and output operations effectively and display the results in a formatted manner.

Requirements

Input Section

  1. Student Details:

    • Name
    • Roll Number
  2. Marks:

    • JAVA
    • C++
    • Go
    • Ruby
    • C#
    • Python

Output Section

  1. Display the marks for each subject.
  2. Calculate and display the total marks and percentage.
  3. Determine and display the pass/fail status based on the percentage.
  4. If the student passes, display the grade according to the grading system.

Grading System

  • 80 - 100: Grade A
  • 60 - 80: Grade B
  • 40 - 60: Grade C
  • 30 - 40: Grade D

Pass/Fail Criteria

  • A student must have a minimum percentage of 40% to pass.

Instructions

  1. Create a Student class to store the student's name, roll number, and marks for each subject.
  2. Create methods for calculating total marks, percentage, and determining the pass/fail status.
  3. Create methods for assigning grades if the student passes.
  4. Implement input validation to ensure marks are between 0 and 100.

Example

Input

Enter your name: Nishant
Enter Your Roll Number: A1023

Enter Your JAVA Marks: 50
Enter Your C++ Marks: 20
Enter Your Go Marks: 25
Enter Your Ruby Marks: 96
Enter Your C# Marks: 70
Enter Your Python Marks: 65

Output

Student Report Card
-------------------
Name: Nishant 
Roll Number: A1023

Marks:
JAVA = 50/100 
C++ = 20/100 F
Go = 25/100 F
Ruby = 96/100
C# = 70/100
Python = 65/100

Total = 326/600
Percentage = 54%
Status: FAIL

Grading System (if passed):
80 - 100 = Grade A
60 - 80 = Grade B
40 - 60 = Grade C
30 - 40 = Grade D

Assignment Submission

Submit the Java source code file along with a document explaining the implementation, including how the input validation was handled and how the grading system was implemented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions