Posts

Showing posts with the label csc 201

CSC201: COMPUTER PROGRAMMING 1-1ST SEMESTER 2019 SESSION-EXAM PAST QUESTION

CSC201: COMPUTER PROGRAMMNG I (2019 SESSION-FUO, 1 ST SEMESTER) INSTRUCTION : ANSWER 4 QUESTIONS ONLY, SECTION A COMPULSORY   SECTION A 1.       QUESTION ONE a.       With a skeletal program show how a program could exhibit robustness property. b.       Given that the area of a circle is A = ∏ r 2 where pi = 3.1412. Write a C++ program that implements a return type function and accepts radius as its only argument to calculate the area of a circle. 2.       QUESTION TWO a.       The number 4 is well known to be an unlucky number to the Chinese. Write a C++ program that automatically assigns floor numbering to a 9-storey building built by Chinese contractor in descending order: Floor 10, Floor 9, Floor 8, Floor 7, Floor 6, Floor 5, Floor 3, Floor 2, Floor 1 and Ground floor. Note: Floor 4 is intentionally skipped by the program. b. ...