Professional Documents
Culture Documents
Assighnment 1
Assighnment 1
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.
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:
You are required to write a program that prepares the inventory report in the following format:
ATOTI COMPANY
INVENTORY REPORT
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]