Line Editor C Program Assignment

Verified

Added on  2019/09/16

|2
|413
|220
Practical Assignment
AI Summary
This assignment requires students to develop two C programs: testing.c, which tests three required functions, and editor.c, which implements a line editor using those functions. The grading emphasizes correctness, proper use of coding constructs, and adherence to style guidelines. Marks are allocated for automated testing, TA grading of functionality, program design, commenting, and test case completeness. Bonus marks are available for implementing file handling using command-line arguments. The assignment aims to assess students' ability to apply programming concepts to create a practical application.
Document Page
Deliverables
There are two different programs to submit for this assignment:
1. A c program called testing.c that contains the three required
functions and a main function that methodically tests each of the
three functions. testing.c should require no user input to run.
2. A c program called editor.c that uses the functions to
implement a line editor as described in the previous text.
Marks breakdown summary
The marks will be roughly 25% from testing.c and 75% from
editor.c
Marks are given primarily for correctness and correct use of
coding constructs.
You will lose marks for inconsistent indentation, variable names,
brace placement, wrong file name, poor code readability,
etc.
You will lose marks if you do not use loops, switches, if/else, etc
properly and effectively.
Do not use global variables or goto statements
You will lose marks if you submit an overly complicated
algorithm as a solution. This program does not require
extremely complicated algorithms.
More Details about marking
40% of the mark comes from automated testing
running styleCheck/cpplint (files attached so you can try it)
lose up to 10 marks for errors in style check
type "python styleCheck.py" after putting both files in the same
directory as your source code
zero in this section if the file name is incorrect
tests compilation and warnings
-10 marks for each warning, 0 on assignment if it doesn't
compile
40 pts automated tests of required functions
60% of the marks come from TA grading
15 pts correct editor functionality
15 pts program design
suitability of algorithms
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
correct and effective use of loops, arrays, if/else, switch, etc
appropriate use of three required functions
10 pts appropriate comments, including header comment in file
and comments before each function
20 pts completeness of test cases in testing.c

For Bonus Marks (on the assignment):
This material will likely not be taught in time for the assignment
due date. You will have to read ahead if you want to try for bonus
marks.
The editor takes a filename on the command line using argv/argc,
opens the file for reading/writing, and load its contents, if any, into
the 5 lines of the editor. Edits are then written back to the file
when the editor is exited.
chevron_up_icon
1 out of 2
circle_padding
hide_on_mobile
zoom_out_icon
[object Object]