You are on page 1of 16

Program Design

Submitted by: Coleen Beatrice S. Ladisla Submitted to: Sir Dante Ponte Saturday 10am 1pm SY 2012 2013

Acknowledgement
To the light, our God, who guided us through the way. To Sir Dante Ponte, for his great efforts of supervising and leading us, to accomplish this fine work. To our friends and families, they were a great source of support and encouragement, we thank them all and wish them all the best in their lives. To my mother and father, for their warm encouragement and love. To Jaimee, for making me breakfast while I finish this project. To every person that gave us something to light our pathway, we thank them for believing in us.

This is dedicated to Malet, my late grandaunt thats been my inspiration to achieve great things.

Table of Contents

Title Page Acknowledgement Dedication Table of Contents Case Scenario System Run Chart JSP Decision Table Pseudocode Data Dictionary Conclusion Reference

i ii iii iv 1 2 3 4 5 7 8 9

Case Scenario
In my current company, salaries are increased according to an employees performance. An increase of 10%, or demotion and/or seminars, is given to an employee every other month. These are all the conditions that must be met in order to be able to provide a salary increase: 1. The employee must arrive at work on time 2. The employee must submit projects on time 3. The employees project must be outstanding/ top-notch According to these conditions, a salary increase, a job demotion and/or a seminar will be given to the said employee.

System Run Chart

EMPLOYEES RECORD MASTER DISK

EMPLOYEES LOG DISK

PAYROLL MASTER DISK

EVALUATION

SALARY INCREASE DEMOTED

UPDATE REPORT

EMPLOYEES EVALUATION REPORT PRINTER

SEMINAR FINAL WARNING

JACKSONS STRUCTURED PROGRAMMING (JSP)


MAIN CONTROL

INITIAL

BODY

END

1, 2 If C1
ERROR PRO

13, 14 While C2
DO_ERROR_PRO* SUMMARY_ERROR_PRO

10, 11, 12

VERIFICATION PRO

CALCULATION PRO

READ NEXT EMPLOYEE RECORD

4, 5, 6

7, 8

Decision Table
Conditions 1. Arrives at work on time 2. Hands-in projects on time 3. Projects are up to standard Actions 1. Salary Increase 2. Job Demotion 3. Seminar 4. Final warning before termination 1 Y Y Y X 2 Y Y N X X X X X 3 Y N Y 4 Y N N 5 N Y Y X X X X X X X X X X X 6 N Y N 7 N N Y 8 N N N

Functions List 1. Open all files 2. Get employees record 3. Output Error Message 4. Nested If Statement 5. Set Grant_Increase value 6. Set Reason Value if Grant_Increase = FALSE 7. Get Next Record 8. Print Employee Names who are given 10% salary increase 9. Print Employee Names of those who are demoted 10. Print Employee Names of those called for a seminar 11. Print Employee Names with final warnings 12. Print reason for no increase and getting otherwise 13. Close all files 14. End Program

Conditions List C1. EOF C2. NOT EOF

Pseudocode
MAIN_CTRL: DO INITIAL BODY END ENDDO INITIAL: OPEN ALL FILES GET RECORD READ FIRST RECORD ERROR_PRO: DO DISPLAY ERROR MESSAGE ENDDO BODY_OF_REPORT: DO IF END_OF_FILE THEN DO ERROR_PRO ENDDO ELSE DO WHILE NOT END_OF_FILE DO_REPORT_PRO ENDDO ENDIF SUMMARY_REPORT_PRO ENDDO DO_REPORT_PRO: DO VERIFICATION_PRO CALCULATION_PRO READ NEXT EMPLOYEE RECORD ENDDO

VERIFICATION_PRO: DO IF ALWAYS_ON_TIME IF HANDS_IN_ON_TIME

IF PROJECTS_OUTSTANDING DO SALARY INCREASE ENDDO ELSE DO SALARY INCREASE SEMINAR ENDDO ENDIF ELSE IF PROJECTS_OUTSTANDING DO SEMINAR ENDDO ELSE DO JOB DEMOTION SEMINAR ENDDO ENDIF ENDIF ELSE IF HANDS_IN_ON_TIME IF PROJECTS_OUTSTANDING DO SALARY INCREASE SEMINAR ENDDO ELSE DO JOB DEMOTION SEMINAR FINAL WARNING BEFORE TERMINATION ENDDO ENDIF ELSE IF PROJECTS_OUTSTANDING DO JOB DEMOTION SEMINAR FINAL WARNING BEFORE TERMINATION ENDDO ELSE DO JOB DEMOTION

SEMINAR FINAL WARNING BEFORE TERMINATION ENDDO ENDIF ENDIF ENDIF ENDDO SUMMARY_REPORT_PRO: PRINT NAMES OF EMPLOYEES UP FOR SALARY INCREASE PRINT NAMES OF EMPLOYEES WHO ARE DEMOTED AND PRINT REASON PRINT NAMES OF EMPLOYEES WHO ARE LISTED FOR A SEMINAR AND PRINT REASON PRINT NAMES OF EMPLOYEES WHO ARE TO GET FINAL WARNINGS EMPLOYEES ALWAYS SEEK REASON FOR DEMOTION, SEMINARS OR FINAL WARNINGS CALCULATION_PRO: DO IF GRANT_INCREASE DO SET SALARY_AMOUNT TO (SALARY_AMOUNT + 10%) ENDDO ELSE IF PROJECTS_OUSTANDING DO SET SALARY_AMOUNT TO (SALARY_AMOUNT 5%) DUE TO JOB DEMOTION ENDDO ELSE DO SET SALARY_AMOUNT TO (SALARY_AMOUNT 5%) DUE TO JOB DEMOTION SET DAYS_OF_WORK_PER_WEEK + 1 DUE TO SEMINARS ENDDO ENDIF ENDIF ENDDO END: DO CLOSE ALL FILES ENDDO

DATA DICTIONARY
Data Names Data Description Aliases Data Type Length Values Used In ALWAYS_ON_TIME A description regarding the employee is punctual or not None BOOLEAN 5 TRUE or FALSE VERIFICATION_PRO module

Data Names Data Description Aliases Data Type Length Values Used In

NUM_LATE Amount of days that employee arrived late None Float 9 0.00 99999999.99 VERIFICATION_PRO module

Data Names Data Description Aliases Data Type Length Values Used In

HANDS_IN_ON_TIME A description regarding the employee hands in his/her projects on time None BOOLEAN 5 TRUE or FALSE VERIFICATION_PRO module

Data Names Data Description Aliases Data Type Length Values Used In

PROJECTS_OUTSTANDING A description regarding the standards of the employees projects None BOOLEAN 5 TRUE or FALSE VERIFICATION_PRO module, CALCULATION_PRO module

Data Names Data Description Aliases Data Type Length Values Used In

GRANT_INCREASE A description regarding a salary increase is given or not None BOOLEAN 5 TRUE or FALSE VERIFICATION_PRO module, CALCULATION_PRO module

Data Names Data Description Aliases Data Type Length Values Used In

SALARY_AMOUNT Amount of current salary None Float 9 0.00 99999999.99 CALCULATION_PRO module

Data Names Data Description Aliases Data Type Length Values Used In

DAYS_OF_WORK_PER_WEEK Amount of days given to the employee if listed for seminars None Float 6 0.00 7000.00 VERIFICATION_PRO module, CALCULATION_PRO module

Data Names Data Description Aliases Data Type Length Values Used In

REASON A string of reason for demotion, seminars or final warnings. None Char 35 5 possible char values VERIFICATION_PRO module

Conclusion
I therefore conclude that the conditions must be met in order to get a salary increase, unless given a certain situation whereas applies. Job demotions and/or warnings are given to those that deserve it. Final warnings, however, are irreversible unless the conditions are improved greatly within the time frame before the next evaluation.

References
http://www.google.com

You might also like