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 examtxt 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 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,
Brian, Gause,
Ron, Heath,
June, King,
Luke, Savon,
Tom, McClure,
Matt, Liskov,
Matthew, Moses,
Justin, York,
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.
tableFirstLast,IDMath,CSEnglish,BusinessJonBenson,BrianGause,RonHeath,JuneKing,LukeSavon,TomMcClure,MattLiskov,MatthewMoses,JustinYork,
Show the course average for each course. There should be one decimal digit.
tableCourse average,Math:CS:English:Business:
You can use the GUI that looks like the following.
Use the following data types and code templates.Dim studs As StudentPrivate Sub FormLoadsender As Object, e As EventArgs Handles MyBase.Load
OpenFileDialogShowDialog
Dim filename OpenFileDialogFileName
Dim srVar As IOStreamReader TOFile.OnenTextfilename
D
table
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
