Posts

Showing posts with the label computer programming 1

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. ...

CSC201: COMPUTER PROGRAMMING 1-FUO-2019 SESSION-EXAM PAST QUESTION

CSC201 : COMPUTER PROGRAMMING 1 ( Federal University Otuoke 1 ST SEMESTER EXAMINATION 2017/2018 session ) Instruction: answer 4 questions; all in section A and any 2 in section B. SECTION A: COMPULSORY 1.      QUESTION ONE a.      Explain the significance of compilers in program development. What changes to compilations did you observe during your practical session(s)? b.      Given that PV =nRT; P = Pressure (atm) , V = Volume (Litres-L), n = Number of moles (mol), R = The Ideal Gas Constant (0.08206 L-atm/mol-K), T = Temperature (Kelvin) .   Evolve codes to compute five different values of P, for five different values of other independent variables. 2.      QUESTION TWO a.      Computer programs solve similar occurrences of a particular problem. Explain. b.      By Newton’s second law, the lit force balance L, for the centripetal acce...