Develop a Examination Gradation System Application using Java programming language
Points to remember:
1)The program will accept the name of the student, class, section, roll number and marks in 5 different subjects.
2) The grade of a particular student will be genarated based on the marks obtained
in 5 subjects (viz. English Mathematics, science,social science and computer Studies) according to the following table:
Average marks grade
>90 but <=100 A+
>80 but <=90 A
>70 but <=80 B
>60 but <=70 C
>=50 but <=60 D
Below 50 not eligible for grade
3)The output should be in the following format:
Name:
Class:
Section:
Roll No:
Total Marks:
Average Marks:
Grade:
Answers
/*
Project Type: Brainly Answer
Date Created: 10-02-2021
Date Edited Last Time: ---NIL---
Question Link: https://brainly.in/question/34955995
Question: Develop a Examination Gradation System Application using Java programming language
Points to remember:
1) The program will accept the name of the student, class, section, roll number and marks in 5 different subjects.
2) The grade of a particular student will be generated based on the marks obtained
in 5 subjects (viz. English Mathematics, science, social science and computer Studies) according to the following
Criteria of Average marks -
>90 but <=100 A+
>80 but <=90 A
>70 but <=80 B
>60 but <=70 C
>=50 but <=60 D
Below 50 not eligible for grade
3) The output should be in the following format:
Name:
Class:
Section:
Roll No:
Total Marks:
Average Marks:
Grade:
Program Created By: atrs7391
Programming Language: Java
Language version (When program created or last edited): jdk-15.0.2
*/
package Brainly_Answers;
import java.util.Scanner;
public class Examination_Gradation_System {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Enter Name: ");
String name = sc.nextLine();
System.out.println("Enter Class: ");
String cls = sc.nextLine();
System.out.println("Enter Section: ");
String sec = sc.nextLine();
System.out.println("Enter Roll Number: ");
String roll = sc.nextLine();
System.out.println("Enter marks in English: ");
double mk1 = sc.nextDouble();
System.out.println("Enter marks in Mathematics: ");
double mk2 = sc.nextDouble();
System.out.println("Enter marks in Science: ");
double mk3 = sc.nextDouble();
System.out.println("Enter marks in Social Science: ");
double mk4 = sc.nextDouble();
System.out.println("Enter marks in Computer Studies: ");
double mk5 = sc.nextDouble();
double ttl = mk1+mk2+mk3+mk4+mk5;
double avg = ttl/5;
String g;
if (avg>90 && avg<=100) {
g = "A+";
}
else if (avg>80 && avg<=90) {
g = "A";
}
else if (avg>70 && avg<=80) {
g = "B";
}
else if (avg>60 && avg<=70) {
g = "C";
}
else if (avg>=50 && avg<=60) {
g = "D";
}
else {
g = "Not eligible for grades, average marks is too low.";
}
System.out.println("Name: "+name);
System.out.println("Class: "+cls);
System.out.println("Section: "+sec);
System.out.println("Roll Number: "+roll);
System.out.println("Total Marks: "+ttl);
System.out.println("Average Marks: "+avg);
System.out.println("Grade: "+g);
}
}