Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 ENGI 2420 Structured Programming (Lab Tutorial 0) Memorial University of Newfoundland.

Similar presentations


Presentation on theme: "1 ENGI 2420 Structured Programming (Lab Tutorial 0) Memorial University of Newfoundland."— Presentation transcript:

1 1 ENGI 2420 Structured Programming (Lab Tutorial 0) Memorial University of Newfoundland

2 ENGI 2420 – Structured Programming Lab Tutorial 0 2 0.1Assignment Policy 0.2Grading Scheme 0.3How to use Eclipse C/C++ 0.4How to use Teaching Machine 0.5 Web-submit Lab Tutorial 0

3 ENGI 2420 – Structured Programming Lab Tutorial 0 3 Weekly Assignments There will be weekly assignments All assignments are due at 11:59 pm the day after the lab for your section Late assignments will not be accepted except by special permission of the lecturer Submitted electronically through the “web-submit” system Must be submitted in ONE file called "assignn.cpp", where n is the assignment number (such as “assign0.cpp”) Note that capitalization and spaces MATTER! assign0.cpp NOT ASSIGN0.cpp NOR assign_0.cpp 0.1 Assignment Policy

4 ENGI 2420 – Structured Programming Lab Tutorial 0 4 Program Testing Behavior of your submitted assignment will be checked by an automated testing program You are responsible for testing your own program to ensure that it works correctly the Eclipse environment with the MinGW toolchain, as available in EN-3000/3029, will be the final arbitrators of compiler 0.1 Assignment Policy

5 ENGI 2420 – Structured Programming Lab Tutorial 0 5 Group Work Writing and debugging your own code Sharing of assignments or working in groups is NOT permitted Any instances of copying will be treated as plagiarism Note that allowing someone else to copy your assignment is treated the same as copying an assignment from someone else However, discussing problems with others is strongly encouraged 0.1 Assignment Policy

6 ENGI 2420 – Structured Programming Lab Tutorial 0 6 Grading Scheme Total 10 marks graded in two parts: behavior and style Program behavior (7 Marks) - checked by an automated testing program that will not be made available to you - tested using a standard set of test cases (also unknown to you) - your responsibility to ensure that your program works correctly in all cases Programming style (3 Marks) - TAs will evaluate your code for style - TAs will state the reason why some marks are deducted 0.2 Grading Scheme

7 ENGI 2420 – Structured Programming Lab Tutorial 0 7 Programming Style Mnemonic variable and function names e.g., “avgStrideNum” for a variable meaning average- stride-number Appropriate comment blocks for files and functions - An initial file comment block 0.2 Grading Scheme /********************************************** * Memorial University of Newfoundland * ENGI 2420 -- Structured Programming * Assignment 0 * Author: Lihong Zhang, * Student Number: **** * Engineering login name: lihong * Section 1 * Due: Jan. 19, 2007 * * … and any other information (i.e., comments) that you feel is pertinent … * * HelloWorld.cpp -- a demo of your first lab program ***********************************************/

8 ENGI 2420 – Structured Programming Lab Tutorial 0 8 Programming Style (II) Appropriate comment blocks for files and functions - the definitions for the function main - declarations and definitions for any other functions needed Meaningful and balanced comments, which mean neither too little nor too much - worthless comment (e.g., x = a + 5; // assign a plus 5 to x) 0.2 Grading Scheme /********************************************* * main -- output a simple message * * Arguments: none * * @returns 0 **********************************************/

9 ENGI 2420 – Structured Programming Lab Tutorial 0 9 Programming Style (III) Consistent and appropriate indentation (if… else, for, while, etc.) Clean and simple structure (convoluted code is difficult to get right) 0.2 Grading Scheme for (i = 1; i < n; i++) { if (r > s) { r = m + 1; s = n + 1; } else { r = m – 1; s = n – 1; } k = i + 1; }

10 ENGI 2420 – Structured Programming Lab Tutorial 0 10 0.1Assignment Policy 0.2Grading Scheme 0.3How to use Eclipse C/C++ 0.4How to use Teaching Machine 0.5 Web-submit Lab Tutorial 0


Download ppt "1 ENGI 2420 Structured Programming (Lab Tutorial 0) Memorial University of Newfoundland."

Similar presentations


Ads by Google