Skip to content

Commit 4136739

Browse files
Added Grade.java with grading methods
1 parent 03177e8 commit 4136739

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Grade.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
public class Grade {
2+
public String getGrade(int marks) {
3+
if (marks >= 90) return "A";
4+
if (marks >= 75) return "B";
5+
if (marks >= 60) return "C";
6+
return "F";
7+
}
8+
}

0 commit comments

Comments
 (0)