After several times of our meeting we finally come out with a nice program flow. Having this program flow means we can develop a good program. The following is a flow chart of our program. There are 5 flowchart diagram together and they are interconnected.
The first thing to discuss will be the main flowchart which gives a general idea of how our program flows. In the beginning, the program will read the data inside the file employee. After finish reading the data the program will offer 5 choices for the end user. The program is come with a validate system which will come out with a error message when end user does not key number 1 to 5.
After that I will explain about the choices offer by the program.
The first choice offered is viewing the employee's profile. There are also 3 choices inside this option, that is viewing all employees' profile,viewing an individual's profile and exit.We can key in number 1 ot 3 respectively for each option. In the first option,all data written in the employee.txt file is printed to the end user for their reference. For the second option end user key in the employee id to acquire specific profile of a employee. Third option seem useless but its is the most important option we have to use - exit.
Second choice for the main menu is inserting new employee profile. In the beginning of the program flow the program will check whether the number key in is already exist or not. If the number key in exist then the program will print a error message. If the number key in fresh to the database then end user can key in and the program will store the new data inside employee.txt. Finally the program will ask end user whether he/she wish to continue the current session or not, if end user choices not the continue the program will be terminated.
The function of third option is allowing end user to edit the employee's profile. First the program will check the number key in exist or not. If number key in does not exist the program will tell end user he/she cannot edit a data that does not exist. If the number key in exist then it is valid to edit the employee's profile. Same with second option the program will ask user whether he/she wish to continue or not.
Fourth option will be the calculator for employee's gross pay. The program will display a profile of a employee and end user is asked to enter total normal time worked,total overtime worked, transport claim and medical claim. After that the process repeated until the last employee. After this the proram will ask the end user whether he/she will go to main menu or terminate the program.

This is a UML diagram of our program.



This entry was posted on 12:16 PM and is filed under . You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

0 comments: