ICS 2102 Introduction to Computer Programming
ICS 2102 Introduction to Computer Programming
a) Discuss the steps that are followed when executing a C program. [5 marks]
1
QUESTION TWO (20 MARKS)
c) Use the If the else statement to write a program to read a year and
find whether the given year is leap or not the general Format used
to create frames in a HTML document. [6marks]
b) What are the steps taken in the execution of the for statements. [3 marks]
2
QUESTION FIVE (20 MARKS)
a) What are the rules for writing the switch statement. [5 marks]
d) Write a program to accept two numbers and print the sum of two
numbers using functions. [6 marks]