Student Grade Calculator
You are tasked with completing a C# method CalculateStudentGrade that determines a student's final grade based on three scores.
The method should:
- Calculate the average of the three provided
doublescores:score1,score2, andscore3. - Based on the calculated average, assign a letter grade according to the following rules:
- If the average is 90 or above, the grade is "A".
- If the average is between 80 (inclusive) and 90 (exclusive), the grade is "B".
- If the average is between 70 (inclusive) and 80 (exclusive), the grade is "C".
- If the average is between 60 (inclusive) and 70 (exclusive), the grade is "D".
- Otherwise (below 60), the grade is "F".
Complete the missing logic and correct any potential errors in the provided CalculateStudentGrade method.
student_grade_calculator.cs
Loading...
Use the "Verify Solution" button to get AI feedback on your c# code.