Given student's marks in multiple subjects, we have to find and print student grade.
Consider the following conditions,
Percentage >=80 -> A
Percentage >=60 -> B
Percentage r>=40 -> C
else D
Note: Maximum Marks 100 in Each Subject
Example:
Input:
Hindi = 67
English = 98
Physics = 34
Chemistry = 67
Maths = 90
Output:
Total Marks = 356.0
Percentage = 71.2
Grade = B
Program to calculate and display student grades in Kotlin
Output
need an explanation for this answer? contact us directly to get an explanation for this answer