QuestionQuestion

Suppose a teacher has 5 students who have taken five tests. The teacher uses the following grading scale to assign a letter grade to a student, based on the average of his or her four top test scores, the lowest test score will be dropped before the average is computed.

Test Score Letter Grade

90 - 100 A
80 - 89 B
70 - 79 C
60 - 69 D
0 - 59 F

Create an application that uses an array of stings to hold the five student names, and array of five strings to hold each student's letter grades, and five arrays of four single precision numbers to hold each student's set of test scores.

Equip the application with a menu that allows the application to perform the following:

1. Display a form that allows the user to enter or change the student names and their test scores.

2. Calculate and display each student's average test score and a letter grade based on the average of the top four scores. If you cannot figure out the way to do the top four you may just do the average of the five and will accept a grade of no higher than 90 points.

3. Do not accept scores less than 0 and not higher than 100. Also do not let a non-numeric value put into the form for test scores.

4. Remember to be aware of tabs order and putting the focus in the right field.

5. Be creative use color and images to help liven up the forms.

6. Your menu should have a File -- Exit the menu items for the project and an Help -- About at the end.

Solution PreviewSolution Preview

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.

Public Class Form1

    Dim studentName(0 To 4) As String

    Dim studentGrade(0 To 4) As String

    Dim student0Score(0 To 4) As Double
    Dim student1Score(0 To 4) As Double
    Dim student2Score(0 To 4) As Double
    Dim student3Score(0 To 4) As Double
    Dim student4Score(0 To 4) As Double

    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load

    End Sub

    Private Sub ExitToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles ExitToolStripMenuItem.Click
       Me.Close()
    End Sub

    Private Sub AboutToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles AboutToolStripMenuItem.Click
       MessageBox.Show("Visual Basic is great.", "About")
    End Sub...
$40.00 for this solution

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Visual Basic Programming Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Decision:
Upload a file
Continue without uploading

SUBMIT YOUR HOMEWORK
We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats