Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
2 Program Specification
The program will have a menu system from which the user selects. There will be 9 options as listed
from 2.1 to 2.9 below. Use the subsection headings from 2.1 to 2.9 as the menu item title. Each
option will implement a specific task in the work as listed below. On selection of an option from the
main menu, the program executes that option and waits for the user to press a key before returning
o the main menu.
1/7
2.4 The Volume of a Cylinder (Menu item 4)
Specification: This function calculates the volume of a cylinder. The volume of a cylinder is given by
V r 2 h , where r is the radius of the circular base and h is the height of the cylinder and V is the
volume of the cylinder.
Input: The radius of the circle and the height of the cylinder are inputs to the function and are
entered by the user.
Output: The function returns the volume of the cylinder.
Input: Enter names of students and their grades ranging from 0 to 100.
Output: Prints a table with one column as student name and another column student grade and a
third column with Pass, Merit, Distinction or Fail.
2/7
3 Additional Specs, Hints & Good Programming Practices
The marking scheme for this coursework will assign marks for Functionality, Quality of Code,
Program Design, Style, Documentation and Working Binaries. Style and Documentation are
crucial – you must neatly comment your code.
Try and break the coursework down into do-able chunks as identified by the task list. These
are distinct programs in the coursework, so try and modularise your effort – for instance -
first you need to set up the menu system and build functionalities of each menu item one by
one. This approach will help in the testing and debugging process of your code.
DEBUGGING HINT: Compile and test your program after every change, even if it was as
simple a change as adding a single line. This will allow you to find and fix errors early
before you write more code. This is another reason why you have to write the skeleton
program which runs first even if it does not do anything yet.
Your main program should have the following heading shown below. You must customise it
to your particular details.
/*************************************************************************************
About: This program is written as part of the fulfilment for the Programming Concepts
Course - HND in ICT Systems at Icon College, London.
Date : Put date here
By : Put your name here. Student ID: Put your student ID Here
Tutor: Y M Gebremichael
*************************************************************************************/
Each function must have its own comment heading which describes exactly what the code
does as shown below as an example.
/*************************************************************************************
About: This program takes your date of birth as an input and returns your age.
*************************************************************************************/
In addition to the above, follow good programming practices. Below are some of the common good
practices generally accepted as industry standard and followed by those in industry who are using
programming in general and the C/C++ in particular. You will get more marks for following good
programming practices. Some examples are given below.
Make a habit of using Meaningful identifier and Function Names to make your code easier
for others to understand. Think about it, what does "g" mean? Is it grades, garbage, grave,
etc. Thus do not use cryptic identifier names, e.g. Use ‘grades’ to refer to student grades
rather than ‘g’. Similarly, use sensible function names. If you want to write a function that
assigns student’s grades, then call it StudentGrades(). Do not use your names or names of
your pets or any name that does not describe what the function does, but at the same time
do not use more than 3 words, i.e. do not use a sentence to name a function. e.g.
ThisIsMyAverageFunction() while syntactically correct is not good programming practice.
3/7
Remember C/C++ is case sensitive so ‘Grades’ and ‘grades’ are not the same as identifier
names. Thus be case and spelling consistent. Use an identifier name only once and spell it
(upper and lower case) the same way within your program.
Finally give the project a sensible name like Unit3CoursewrkStudentID E.g. Unit3CourseWrk3344
4/7
5 Grading Criteria of this Coursework (Overall)
5/7
6 Specific Guidelines for Pass/Merit/Distinction
7.1 Plagiarism
Any act of plagiarism will be seriously dealt with according to the regulations. In this context the
definition and scope of plagiarism are presented below:
Plagiarism is presenting somebody else’s work as your own. It includes copying information directly
from the Web or books without referencing the material; submitting joint coursework as an
individual effort; copying another student’s coursework; stealing coursework from another student
and submitting it as your own work. Suspected plagiarism will be investigated and if found to have
6/7
occurred will be dealt with according to the college procedure. (For details on Plagiarism please see
the student hand book)
7.2 Submission
a. All coursework must be submitted to the assigned person and a receipt must be obtained.
b. The copy of the coursework submitted will not be returned to you after marking
c. Any computer files generated such as program code (software), graphic files that form part of the
coursework must be submitted on a floppy disc or CD together with the documentation.
d. The student must attach a copy of the question in between the cover page and the answer.
7/7