You are on page 1of 1

JOMO KENYATTA UNIVERSITY OF AGRICULTURE AND TECHNOLOGY

BACHELOR OF BUSINESS INFORMATION TECHNOLOGY


ICS 2102 INTRODUCTION TO COMPUTER PROGRAMMING
ASSIGNMENT 1 DUE: 29/10/2011
Instructions:
Attempt all questions. You may divide yourselves into groups of fives

Question 1
a) Discuss the need for structured approach to software development
b) Describe three ways of helping to ensure that program maintenance is a relatively simple process
c) Briefly, explain the significance of developing algorithms in program development
d) Explain why a regimented testing procedure needs to be implemented when developing software. Does
this help to eliminate compile-time errors? Give reasons for your answer
e)
i) Briefly explain the meaning of the term “coding conventions” OR “coding styles” as used in
computer programming.
ii) Explain in detail the relevance of choosing a particular coding convention.
iii) Using examples describe key areas that are considered in coding styles.

Question 2
a) Draw a flowchart and Pseudocode algorithms for the following case:

A program is required to calculate the net pay for employees. The program receives in put from the
keyboard and then displays the net pay on the screen.

Input: Number of hours worked, hourly pay rate, marital status.

Net pay is calculated as the difference between gross pay and taxation. Tax is calculated at 12% of gross
pay for married workers and 20 % for unmarried workers. [10 Marks]
b) Convert the algorithm in a) into a C program [10 Marks]

Question 3
Atoti Company manufactures four products. Their inventory position on a particular day is as given below:

Code Quantity Rate (Kshs.)

F105 275 575.00


H220 107 99.25
D109 321 215.00
M315 89 725.00

You are required to write a program that prepares the inventory report in the following format:

ATOTI COMPANY
INVENTORY REPORT

Code Quantity Rate (Kshs.) Value

Total Value

The product of quantity and rate gives value of each item. W rite a program to prepare the inventory report
8 [20 Marks]

You might also like