Steve

Steve

  • NA
  • 1
  • 0

VB Help

Nov 25 2006 2:34 PM
If anyone could help me out with this project I am doing for school I would appreciate it... my teacher wants a VB program to:

A program is required to process golf scores. The score file contains name and scores for 4 rounds stored in a file scores.txt. There are less than 50 player records in the file.

Your program must:
Use data objects
Be designed using arrays and functions.
Read the data into appropriate storage
Compute the total score for each player and store it appropriately
Sort the data by player name
Output the information in the above alphabetical order.
Sort the data by final score and output the order of finish
Compute, store and output the average score for each round
Compute and output the highest and lowest score for each round.

Sample Input from scores.dat
Furyk,Jim 65 66 66 71
Azinger,Paul 67 70 65 72

The program should contain classes for:
Golfer ( what properties and methods go here?)
Tournament( what properties and methods go here?)
At least two forms must be used

The text file looks like this

Love,Davis 68 68 70 68
Goosen,Retief 72 69 64 71
Furyk,Jim 65 66 66 71
Appleby,Stuart 79 64 70 70
Mickerson,Phil 67 66 70 72
Clarke,Darren 66 68 68 69
Els,Ernie 67 70 66 72
Woods,Tiger 66 67 66 69
Montgomerie,Colin 66 71 66 70
Azinger,Paul 67 70 65 72
Hoch,Scott 71 70 69 71
Langner,Bernhard 69 67 68 73
Toms,David 68 70 70 70
Weir,Mike 69 70 71 73
Singh,Vijay 68 68 69 73
Cink,Stewart 69 67 70 72
Elkington,Steve 73 68 73 68
Sutton,Hal 69 71 67 70
Harrington,Padraig 68 66 73 72
Fulke,Pierre 73 71 65 70
Allenby,Robert 68 67 75 72
Fasth,Niclas 74 67 68 72
Franco,Carlos 68 71 68 73
Verplank,Scott 69 71 70 69
Poulter,Ian 67 72 69 70

Thanks everyone for looking at this.