Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

C# help

$
0
0

Hello 

I just have a easy question for those of you that has master the program but its really difficult for me as a beginner.
The question is to write a program in c# that read a text file with bunch of data and display in following format:
the file text contains the following datas

james, pock, 100, 90, 89, 70
Twain, Mark, 89, 100, 78, 88
Kurk, bryant, 68, 89, 98, 100

 How would you write the program that outputs the data in the following format

Name                       Test 1        Test 2          Test 3       Test 4     Average

pock              James            100                 90                    89                     70            87.25         

Mark             Twain                89                 100                  78                    88               ....

Bryant       kurk            68            89               98              100          ...

the code prints out the titles and score as shown in the format above (using 2D array)


Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>