This program returns a letter grade when a test score is entered.
The program that my modified version is based on uses A=90 or above, B=80 and above, etc. I changed it to display A+, A-, etc. by adding in additional ElseIf statements. I also had to change the Function's type from Char to String.
Function LetterGrade(ByVal score As Double) As String
If score >= 97 Then
Return "A+"
ElseIf score >= 93 Then
Return "A"
ElseIf score >= 90 Then
Return "A-"
No comments:
Post a Comment