Title | 4019******* Programming 621 2020/2021 Assignment |
---|---|
Course | Programming |
Institution | Richfield Graduate Institute of Technology |
Pages | 6 |
File Size | 338.2 KB |
File Type | |
Total Downloads | 6 |
Total Views | 260 |
RICHFIELDFACULTY OF INFORMATION TECHNOLOGYPROGRAMMING 6121 ST SEMESTER ASSIGNMENTName & Surname: Curlin_Louw__________________ ICAS No: 401914153____________________ Qualification: DIT________________ Semester: 1_ Module Name: Programming_____ Date Submitted: _ 14 May_2021______ ASSESSMENT C...
RICHFIELD FACULTY OF INFORMATION TECHNOLOGY
1ST
PROGRAMMING 612 SEMESTER ASSIGNMENT
Name & Surname: __Curlin_Louw ____________________ ICAS No: __401914153______________________ Qualification: ___DIT___________________ Semester: __1___ Module Name: ___Programming________ Date Submitted: _ 14_May_2021_______
ASSESSMENT CRITERIA
MARK ALLOCATION
EXAMINER MARKS
MODERATOR MARKS
MARKS FOR CONTENT QUESTION ONE QUESTION TWO
35 30
QUESTION THREE
35
TOTAL MARKS
100
TOTAL MARKS FOR ASSIGNMENT
100
Examiner’s Comments:
Moderator’s Comments:
Signature of Examiner:
QUESTIONS QUESTION ONE #include using namespace std;
Signature of Moderator:
[100 MARKS] 30 MARKS
int m, n; int ged(int a, int b) { return b == 0 ? a : ged(b, a % b); } int reduce(int a, int b) { if(a==0 || b==0) { return 0; } else { m=a/ged(a,b); n=b/ged(a,b); } } int main() { cout> m; cout > n; if(reduce (m,n) == 1) { cout...