Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Create an application that allows a teacher to enter three test scores each for

ID: 3620155 • Letter: C

Question

Create an application that allows a teacher to enter three test scores each for three students. The application should calculate each student's average test score and assign a letter grade based on the following grading scale:

Average Test Score
90 or greater A
80 through 89 B
70 through 79 C
60 through 69 D
Below 60 F

The application should prompt the user for each student's name and three test scores.

Explanation / Answer

Dear, Here is the code.. Module Module1 Sub Main() Dim i As Integer Dim j As Integer Dim students(3) As String Dim testscores(3, 3) As Integer Dim average(3) As Integer Dim sum As Integer Dim grades(3) As Char Console.WriteLine("Enter Data:") For i = 0 To 2 Step 1 Console.WriteLine("Enter student Name:") students(i) = Console.ReadLine() For j = 0 To 2 Step 1 Console.WriteLine("Enter test score") testscores(i, j) = Console.Read() Next j Next i For i = 0 To 2 Step 1 sum = 0 For j = 0 To 2 Step 1 sum += testscores(i, j) Next j average(i) = sum / 3 Next i For i = 0 To 2 Step 1 If average(i) >= 90 Then grades(i) = "A" ElseIf average(i) >= 80 Then grades(i) = "B" ElseIf average(i) >= 70 Then grades(i) = "C" ElseIf average(i) >= 60 Then grades(i) = "D" ElseIf average(i) >= 50 Then grades(i) = "F" End If Next i Console.WriteLine("Printing data") For i = 0 To 2 Step 1 Console.WriteLine(students(i)) Console.WriteLine(grades(i)) Next i End Sub End Module Hope this will help you..

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote