Question: You are to write a program to process student grades. Each student takes four courses: Math, CS , English, Business. The data are stored in

You are to write a program to process student grades. Each student takes four courses: Math, CS, English, Business. The data are stored in a file (exam.txt), where the first line contains the subject of four courses, followed by each line consisting of the name of student (First Name, Last Name), student ID, which is 9 digit string, and the scores of four courses that each student is taking.
The input file contains the following data:
Math, CS, English, Business
Jon, Benson, 123456789,90,80,70,80
Brian, Gause, 100000001,88,77,66,99
Ron, Heath, 204568762,77,66,88,93
June, King,332549873,80,91,77,75
Luke, Savon, 100045423,68,87,81,91
Tom, McClure, 286453218,77,88,60,90
Matt, Liskov,438763298,43,68,70,63
Matthew, Moses,550550005,69,59,88,81
Justin, York,432876489,93,86,73,55
Use the OpenFileDialog control to open the file and read the data into your program. Then, show the whole data in a tabular format like this in a list box. You don't need to show the lines. Just be sure to format the output properly.
\table[[First,Last,ID,Math,CS,English,Business],[Jon,Benson,123456789,90,80,70,80],[Brian,Gause,100000001,88,77,66,99],[Ron,Heath,204568762,77,66,88,93],[June,King,332549873,80,91,77,75],[Luke,Savon,100045423,68,87,81,91],[Tom,McClure,286453218,77,88,60,90],[Matt,Liskov,438763298,43,68,70,63],[Matthew,Moses,550550005,69,59,88,81],[Justin,York,432876489,93,86,73,55]]
Show the course average for each course. There should be one decimal digit.
\table[[Course average,],[Math:,76.1],[CS:,78.0],[English:,74.8],[Business:,80.8]]
You can use the GUI that looks like the following.
Use the following data types and code templates.Dim studs(100) As Student0Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
OpenFileDialog1.ShowDialog()
Dim filename = OpenFileDialog1.FileName
Dim srVar As IO.StreamReader = TO.File.OnenText(filename)
(D)
\table[[00],[000]]
0=
0=
3
You are to write a program to process student

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!