Question: Write a program in Visual Studio C# Console app. to read a .txt file containing student names and associated test scores. The text file must

Write a program in Visual Studio C# Console app. to read a .txt file containing student names and associated test scores. The text file must be named "stutest.txt" (use @"..\..\stutest.txt"). Commas are used to separate each piece of information.

The output should be a nicely formatted table (with headings) showing each students name, their test scores, and their averages, the scaled test scores and averages. The average for each column shown as well. All averages should be displayed to one decimal place. The scaled test scores must be rounded to the nearest integer value. Lastly, your program may print out the slope (m) and y-intercept (b) for each of the test sets.

A sample file is below. Scott, Montgomery, 80, 80, 92, 68 Kirk, James T., 100, 95, 100, 98 Spock, Mr., 100, 30, 100, 100 Checkov, Pavel, 100, 65, 90, 90 McCoy, Leonard, 92, 75, 85, 90

Any number of students and any number of exams per student must be accomadated. You don't have to worry about lines wrapping if there is more data than will fit on one line.

the output should look as follows: Name Ex1 Ex2 Ex3 Ex4 Avg Ex1 Ex2 Ex3 Ex4 Avg raw raw raw raw raw scl scl scl scl scl Checkov, Pavel 100 65 90 90 86.3 100 68 65 75 76.9 Kirk, James T. 100 95 100 98 98.3 100 100 100 95 98.7 McCoy, Leonard 92 75 85 90 85.5 75 79 48 75 69.0 Scott, Montgomery 80 80 92 68 80.0 38 84 72 19 53.0 Spock, Mr. 100 30 100 100 82.5 100 30 100 100 82.6 Sulu, Hikiru 80 85 90 95 87.5 38 89 65 87 69.8 Averages 92.0 71.7 92.8 90.2 86.7 75.0 75.0 75.0 75.0 75.0 m 3.1 1.1 3.5 2.5 b -212.5 -1.8248.8-154.2 Press any key to continue

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 Databases Questions!