0% found this document useful (0 votes)
28 views1 page

Mount Kenya University Virtual Mode CAT BIT1210 Fundamentals of Programming Languages Attempt All The Questions Question One

Uploaded by

kokicharity1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views1 page

Mount Kenya University Virtual Mode CAT BIT1210 Fundamentals of Programming Languages Attempt All The Questions Question One

Uploaded by

kokicharity1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

MOUNT KENYA UNIVERSITY

VIRTUAL MODE

CAT

BIT1210 FUNDAMENTALS OF PROGRAMMING LANGUAGES


Attempt all the questions
Question One
a) A program is required that prompts the user to enter three numbers and computes for the
sum and average of the three numbers. The program then displays the computed values
on the screen.
Required:
i) Sketch the flow chart to illustrate the logic flow in the program
ii) Write the pseudo code for your solution.
[4 Marks]
b) Define the term control structure. Name and briefly describe the three control structures
found in C programming
[4 Marks]
c) Develop a program algorithm (using program flowchart) that allows a user to input the
radius of a circle and computes the area and circumference of a circle. The program
should display the computed results. [Hint: PIE = 3.14]. [4 marks]
Question Two
a) Conduct a research project on a programming language of your choice (excluding
Python, Java, and C++). Your research should cover the following:

 History and development


 Key features and benefits
 Common use cases
 Notable projects or applications developed using this language
 Future trends and potential developments [8 marks]

b) Discuss the reasons as to why C remains relevant despite the advent of newer
programming languages. [3 Marks]

c) Write a C program that includes at least three functions: one for input, one for processing
(e.g., calculating the sum of an array), and one for output. [7 marks]

You might also like