Computer Science, asked by jamessukuina, 7 months ago

How will I write a java program to calculate the Grade of a subject based on mark entered which is out of 20%.

Answers

Answered by duryodhanpatra319
1

Answer:

import Java . util scanner. in This program calculates the grade of a student based on the marks entered by user in each subject. Program prints the grade based on this logic.

If the average of marks is >= 80 then prints Grade ‘A’

If the average is <80 and >=60 then prints Grade ‘B’

If the average is <60 and >=40 then prints Grade ‘C’

else prints Grade ‘D’

To understand this Program you should have the knowledge of following concepts of Java:

Java For Loop

Arrays in Java

if..else-if in Java

Example: Program to mark me as a brainliest

Similar questions