I'm having trouble opening a file which contains 4 columns of information like this:
628130189 Paul James 92
237698211 Daniel Cook 86
201895367 Mellisa Garza 78
491066285 Jessica Barbara 62
168606868 Elizabeth Bruce 90
378205732 Sarah Lee 91.5
118453900 David Brian 87
583192186 Cody Garza 92
226665118 Gage Lewis 78
175382843 James Collins 69.5
816231095 Ann White 88.5
376651608 Mark Jackson 72
508234567 Mark Freeman 86
763211099 Jack William 52
286204723 John Rodrguez 69.5
How do I organize them into something this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
SSN Last-Name First-Name Score
628130189 James, Paul 92.0
237698211 Cook , Daniel 86.0
201895367 Garza, Melessa 78.0
491066285 Barbara, Jessica 62.0
168606868 Bruce, Elizabeth 90.0
378205732 Lee, Sarah 91.5
118453900 Brian, David 87.0
583192186 Garza, Cody 92.0
226665118 Lewis, Gage 78.0
175382843 Collins, James 69.5
816231095 White, Ann 88.5
376651608 Jackson, Mark 72.0
508234567 Freeman, Mark 86.0
763211099 William, Jack 52.0
286204723 Rodriguez, John 69.5
they're all supposed to be centered into a straight column but I think you get the point
im supposed to organize them from SSN firstname lastname and score to SSN lastname, firstname and score
|
I know I need to declare 4 arrays (int SSN, string first_name, string last_name, double score) but how do I get the file open in the first place and how do I go about organizing them?