Assignment 1
Assignment 1
You must write a program which reads, processes and reports on the contents of a text
file.
Programs must compile and run under gcc (C programs), g++ (C++ programs), java
or python. Programs which do not compile and run will receive no marks.
Standard libraries of data structures and algorithms such as STL may not be used.
Code be sourced from textbooks, the internet, etc may also not be unless it is correctly
credited. In the event that you use code sourced in this way you will not receive marks
for that part of the program.
Marking Guide:
Programs submitted must work! A program which fails, to compile or run will receive
a mark of zero.
A program which produces the correct output, no matter how inefficient the code, will
receive a minimum of 50% of the program component of the mark.
Additional marks beyond this will be awarded for the appropriateness, i.e. efficiency
for this problem, of the algorithms and data structures you use.
Programs which lack clarity, both in code and comments, will lose marks.
The total mark will be determined based on both your code and the accompanying
design pdf document.
Submission:
Assignments should be typed into a single text file called ass1.ext where ext is the
appropriate file extension for the chosen language. A pdf file describing your solution
should also be produced. This file should contain at least:
1. A high‐level description of the overall solution strategy:
2. A list of all of the data structures used, where they are used and the reasons for
their choice.
3. A list of any standard algorithms used, where they are used and why they are used.