Skip to content

Commit 18ecdcb

Browse files
author
“A1-4U2T1NN”
committed
fix: removed final 'else-if' statement;
1 parent a4056a9 commit 18ecdcb

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lesson_07/conditionals/src/lesson7.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,23 +54,22 @@ export function convertGpaToLetterGrade(gpa: number): string {
5454
return "A-";
5555
}else if(gpa >= 3.3 && gpa < 3.7){
5656
return "B+";
57-
}else if(gpa >= 3 && gpa < 3.3){
57+
}else if(gpa >= 3.0 && gpa < 3.3){
5858
return "B";
5959
}else if(gpa >= 2.7 && gpa < 3){
6060
return "B-";
6161
}else if(gpa >= 2.3 && gpa < 3.7){
6262
return "C+";
63-
}else if(gpa >= 2 && gpa < 2.3){
63+
}else if(gpa >= 2.0 && gpa < 2.3){
6464
return "C";
6565
}else if(gpa >= 1.7 && gpa < 2){
6666
return "C-";
6767
}else if(gpa >= 1.3 && gpa < 1.7){
6868
return "D+";
6969
}else if(gpa >= 1.0 && gpa < 1.3){
7070
return "D";
71-
}else {
72-
return "F";
7371
}
72+
return "F";
7473
}
7574

7675
/**

0 commit comments

Comments
 (0)