Program Design

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

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

. my late grandaunt that’s been my inspiration to achieve great things.This is dedicated to Malet.

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 .

The employee must submit projects on time 3. . salaries are increased according to an employee’s performance. or demotion and/or seminars. a job demotion and/or a seminar will be given to the said employee. 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. is given to an employee every other month.Case Scenario In my current company. a salary increase. An increase of 10%. The employee’s project must be outstanding/ top-notch According to these conditions.

System Run Chart EMPLOYEE’S RECORD MASTER DISK EMPLOYEE’S LOG DISK PAYROLL MASTER DISK EVALUATION SALARY INCREASE DEMOTED UPDATE REPORT EMPLOYEE’S EVALUATION REPORT PRINTER SEMINAR FINAL WARNING .

12 VERIFICATION PRO CALCULATION PRO READ NEXT EMPLOYEE RECORD 4. 8 9 . 6 7. 11. 2 If C1 ERROR PRO 13. 14 While C2 DO_ERROR_PRO* SUMMARY_ERROR_PRO 3 10.JACKSON’S STRUCTURED PROGRAMMING (JSP) MAIN CONTROL INITIAL BODY END 1. 5.

Print reason for no increase and getting otherwise 13. Get employee’s record 3. Print Employee Names of those called for a seminar 11. Arrives at work on time 2.Decision Table Conditions 1. Set Reason Value if Grant_Increase = FALSE 7. EOF C2. Seminar 4. Output Error Message 4. NOT EOF . Close all files 14. Open all files 2. 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. Print Employee Names of those who are demoted 10. Salary Increase 2. Nested If Statement 5. Job Demotion 3. Print Employee Names with final warnings 12. End Program Conditions List C1. Projects are up to standard Actions 1. Get Next Record 8. Print Employee Names who are given 10% salary increase 9. Hands-in projects on time 3. Set Grant_Increase value 6.

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 .

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 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.

99 CALCULATION_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. 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.00 – 99999999.Data Names Data Description Aliases Data Type Length Values Used In PROJECTS_OUTSTANDING A description regarding the standards of the employee’s projects None BOOLEAN 5 TRUE or FALSE VERIFICATION_PRO module.

None Char 35 5 possible char values VERIFICATION_PRO module . CALCULATION_PRO module Data Names Data Description Aliases Data Type Length Values Used In REASON A string of reason for demotion.00 VERIFICATION_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. seminars or final warnings.00 – 7000.

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

com .google.References http://www.

Master your semester with Scribd & The New York Times

Special offer for students: Only $4.99/month.

Master your semester with Scribd & The New York Times

Cancel anytime.