Skip to content

Instantly share code, notes, and snippets.

@LuminousMonkey
Created March 16, 2014 14:13
Show Gist options
  • Save LuminousMonkey/9583862 to your computer and use it in GitHub Desktop.
Save LuminousMonkey/9583862 to your computer and use it in GitHub Desktop.
Good Afternoon Mike,
In regards to the linked list question, the assignment was designed to be written using a linked list ADT, however this unit is scheduled for some students before they learn about linked lists (BEng SE students have this unit scheduled for their first semester after the Engineering Common First Year).
For this reason, we allow students who are unaware of what a linked list is, to use static arrays to store the input data.
The idea of the homework assignments is not to test coding ability or quality, but it needs some primitive coding challenge in order to be able to allow you to practise PSP methodologies.
In terms of the input to the program, the assignment specifies that the input should be read from a file. The format of this file can be determined by you, so long as it is documented and you provide example input files with your assignment. This way, you can choose how you want to format the input file (CSV, TSV, one line per number, etc.).
As a error handling specification is not given, in case of a parsing error, you should output an error message and gracefully exit the program. A file not found or simular error should be handled similarly.
You can assume that the numeric input will be appropriate precision to be stored either in a float, or a double (your choice).
You may parse the input file as many time as you deem appropriate, although it is compulsory that the values should be stored in memory (a linked list preferably).
It’s good to see you studying on a Sunday!
Any more questions, don’t hesitate to shoot me an email.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment