Home B101 B142L B202 B302 B324 M520 Mosaic Course updatesPresentation format
<http://cnfolio.com/B142LCW20090426>
Introduction to Computing – B142L

B142L coursework assignment 2

Academic year 2008/9



Coursework Title:  Text printing and editing utility
Coursework Due Date:  April 26, 2009
Lecturer:  C Nguyen



COURSEWORK DESCRIPTION

Students are required to write a C program that implements the following functions:
Stage 1 –   Numeric addressing
When given input data containing multiple lines of text, print one line, a range of lines or an incrementing range of lines.
Stage 2 –   Text editing
Commands to delete lines, append new text, replace text and insert new text.
Stage 3 –   Wildcard matching
Commands to substitute text strings and use wildcard symbols to match patterns of text.
Stage 4 –   Text addressing
Use text strings and wildcard patterns to select lines of text for editing.
Stage 5 –   Memory buffer
Commands to hold text in a buffer and grab text from a buffer while editing text input.

Computing practicals are provided for each stage with examples of the required functionalities. The completed coursework program must be able to work with all the examples provided in the computing practicals.


This coursework contributes 35% to the B142L unit mark. It is based on the classic Unix sed utility for stream based text editing.



COURSEWORK SUBMISSION

Students are required to submit their source code and design notes online using the Mosaic website. Do not upload document files such as Microsoft Word, Adobe Acrobat or OpenOffice Writer. Source code and design notes must be written in the student's Mosaic coursework page.



ASSESSMENT CRITERIA

(1) Functionality and source code (50 marks)
MarksCriteria
40–50Program implements all required features of Stage 4 and some required features of Stage 5.
35–39Program implements all required features of 4.
30–34Program implements all required features of Stage 3 and some required features of Stage 4.
25–29Program implements some required features of Stage 3.
20–24At a threshold level, program implements all required features of Stages 1 and 2.
0–19Program does not implement the required features of Stages 1 and 2.

(2) Design notes (40 marks)
MarksCriteria
32–40The design notes discuss plans for program improvements and new features.
28–31The design notes explain important algorithms and optimization methods in the program.
24–27The design notes explain the program structure, organization and functions.
20–23The design notes explain the purpose and use of iterative loops in the program.
16–19At a threshold level, the design notes explain the purpose and use of constants, variables and selection logic in the program.
0–15The design notes do not adequately explain the purpose and use of constants, variables and selection logic in the program.

(3) Peer review (10 marks)
MarksCriteria
10At least one of the votes is for a coursework submission which received the top 5 highest marks.
5At a threshold level, votes for 3 coursework submissions which best fit the coursework assessment criteria.