/*************************************************************\ PROGRAM: marks.cpp PURPOSE: to award a grade based upon an examination mark AUTHOR: Tony Jinman DATE WRITTEN: 11/05/00 LAST UPDATE : 11/05/00 \*************************************************************/ #include void main() {//start of function main int mark; cout<<"Enter examination mark: "; cin>>mark; if(mark>60) cout<<"Students is awarded a Merit"; else if(mark>=40) cout<<"Students is awarded a Pass"; else //mark must be less than 40 cout<<"Student is awarded a Fail"; }//end of function main