You are on page 1of 7

TABLE OF CONTENTS

Definition of problem.................................................................................................................................... 2
Narrative and flow charts or pseudocode .................................................................................................... 3
Coding of program ........................................................................................................................................ 4
Testing and presentation .............................................................................................................................. 5
Communication of Information .................................................................................................................... 6
Definition of problem

Records are important to organizations and institutions, and even more so to schools and colleges. The
keeping of data help to preserve all that has been done by both teacher and student as regarding
examinations. They can tell the student’s progress and assist in displaying performance over a period of
time. For a school, among other data items, names, ages, section or department, marks, average, total
and rank are just a small set of data that can be collected and stored. The Quarless High School wishes
to computerize their data collection and storage facilities so that access can be gotten by teachers on
past and present students performance.

Data is to be captured on students’ names, age, department, at least two subjects, with their average,
and total. Names are to be separated into first name and surname, and there are just 3 departments for
now: Business, Modern Studies and Science. Captured data will be stored in a named file of which there
should be at least one containing the record of each student data.

The file can be considered a database, so that the operations Create, Read, Update and Delete (CRUD),
must be done by employing some appropriate form of a menu. The menu options themselves are to be
accessed as functions, so that at least five functions are needed. Output operations are to be properly
formatted for display on screen and/or to the printer if necessary. Reading operations involves searching
and sorting of database records eg records are to be sorted and displayed by age, name and
department, and filtered by department and name. Updated records are selected and the fields edited
as necessary. Deleted records are of course, removed from the database, after some search criteria
done.

The program code should reflect proper established programming habits, especially indentation and
comments, that ensure the completed program is neatly laid out, the structures are clearly identified,
easy to follow and easy to be read and understood.
Narrative and flow charts or pseudocode

The program is created by employing a number of functions. These functions cause the program to be
modular so that every section is able to be separately analyzed in some detail. A single file is employed,
which may be created, read, sorted by some selected criteria, updated and finally deleted. All of the
operations done on the files are done by calling the functions from main, itself a function.
CREATE FUNCTION – From the main menu screen, the option 1 is chosen which invokes the create
function. Because a file may be opened for either writing or appending, the latter choice is done so that
subsequent records are simply added to the end of the file. After the file is opened, it is tested to
determine if that was correctly done, prompts for the required inputs are shown and done and the
keyed-in data is written to the file on disk. The program prompts the user for another record to be
input. The function ends when no more records are needed to be written after which the file is closed
and control returns to the main menu. See fig 1.
READ FUNCTION
SORT FUNCTION
UPDATE FUNCTION
DELETE FUNCTION
Coding of program
Testing and presentation
Communication of Information
Appendix

You might also like