I Haz Codes

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Menu
Save the score

You are to write a program which can load and save scores into a file. The file will be structrued as below –


1,masta,5000
2,bert,4325
3,sally,4011
4,sue,3834
5,Les,3731

Each score is on a new line and is made up of the position, name and score.

Your program will need to ask for the new score and name. It will then insert the score into the correct position in the file. For example if the values 4400 and Mark are entered the table will become

1,masta,5000
2,mark,4400
3,bert,4325
4,sally,4011
5,sue,3834


You need to log in or create an account to submit code!

Note – The score for this task is low because I gave the answer to the Y11’s!

Leave a Reply

Your email address will not be published. Required fields are marked *

Information