I have an problem about read and take the text from one text file, than create the new txtfile to paste on and that should follow the format at below:
1. Each string must be surrounded by double quotes.
Each piece of data must be delimited by a Tab
Each person's data must be stored an a new line
2. The data to be stored is:
Person ID
Person Name
Total Score (addition of all three scores for the person)
3. Once all data has been added to the file, add the following statistics
Average total score, Highest scorer (there may be multiple persons) and Lowest scorer (there may be multiple persons)
the example of the txtfile that used to take txt name: takefile.txt:
Linda Kowalski,735146X,8,15.5,16
Andre Ursini,7924402,12,7,12.5
Julia Jenkins,7931829,8.5,8.5,15
the example of the txtfile that we need to create and paste on that follow the format name: finalfile.txt:
"735146X" "Linda Kowalski" "39.5"
"7924402" "Andre Ursini" "31.5"
"7931829" "Julia Jenkins" "32.0"
==========================================
Average total score: 34.3
Highest scorer : Linda Kowalski
Lowest scorer: Andre Ursini