New version page

UNF COP 3531 - Study Notes

This preview shows page 1-2-3-4-5-6 out of 19 pages.

View Full Document
View Full Document

End of preview. Want to read all 19 pages?

Upload your study docs or become a GradeBuddy member to access this document.

View Full Document
Unformatted text preview:

APPROACH:1. DECIDE ON MAJOR FUNCTIONS FOR EACH PROGRAM2. WRITE MAJOR FUNCTIONS IN PSEUDOCODE FOR EACH PROGRAMEXAMPLE: MAIN DRIVER:DISPLAY WELCOME MENUUPON ANY PRESSED KEY DO:DISPLAY MAIN MENUPROMPT USER FOR UPDATE, LIST, INQUIRY, QUIT.EVALUATE REPLYWHEN UPDATE DO:DISPLAY A, C, D, OR R SCREENPROMPT USER FOR A, C, D, OR REVALUATE REPLYWHEN ADD DO:...WHEN CHANGE DO:...WHEN DELETE DO:...WHEN RETURN DO:...WHEN OTHER DO:WHEN LISTS AND REPORTS DO:DISPLAY LISTS AND REPORTS SCREENPROMPT USER FOR CHOICE (L&R, R)EVALUATE REPLYWHEN LISTS AND REPORTS DO:WHEN RETURN DO:WHEN OTHER DO:WHEN INQUIRY DO:DISPLAY REQUEST FOR STOCK NUMBERPROMPT USER FOR CHOICEEVALUATE REPLYWHEN ..... DO:WHEN OTHER DO:WHEN QUIT DO:WHEN UPDATE DO:DISPLAY A, C, D, OR R SCREENPROMPT USER FOR A, C, D, OR REVALUATE REPLYWHEN ADD DO:DISPLAY RECORD SCREEN FORMATACCEPT USERS SCREEN INPUTEVALUATE/VALIDATE ALL FIELDSWHEN ANY FIELD INVALID DO:A LITTLE MORE DETAIL:WHEN ALL FIELDS VALID DO:WHEN CHANGE DO:DISPLAY SCREEN - REQUEST STOCK NUMBERACCEPT SCREEN INPUT EVALUATE STOCK NUMBERWHEN NOT NUMERIC DO:WHEN NOT FOUND DO:WHEN VALID DO:DISPLAY RECORD ON SCREEN...WHEN DELETE DO:DISPLAY SCREEN - REQUEST STOCK NUMBERACCEPT SCREEN INPUTEVALUATE STOCK NUMBER WHEN NOT NUMERIC ....WHEN INVALID ...(NOT FOUND)WHEN VALID DO:DISPLAY ENTIRE FORMATTED RECCONFIRM DESIRE TO DELETEACCEPT SCREEN INPUTEVALUATE RESPONSEWHEN [email protected] DO:WHEN OTHER DO:WHEN RETURN DO:RETURN TO CALLERWHEN OTHER DO:ALLOW USER THREE ATTEMPTS. DO LOOPAFTER THREE ATTEMPTSDISPLAY MESSAGERETURN (TO NEXT HIGHER MENU)END-UPDATEMENU GUIDANCE. HINTS/SUGGESTIONS COMING. NOT EXHAUSTIVE LIST BELOW; JUST A GUIDE. STRONGLY SUGGESTPRELIMINARY / ARCHITECTURAL DESIGN:.. STUDY THE SPECIFICATIONS CAREFULLY ATTEMPTING TO FULLY UNDERSTAND THEIR MEANING. SEEK CLARIFICATION ANYTIME... STUDY THE FILE STRUCTURES .. STUDY THE TRANSACTIONS TO ENSURE A COMPLETE SET.. CREATE YOUR MENUS ON GRAPH PAPER OR OTHER MEDIA.. SKETCH OUT YOUR REPORT FILE FORMATS ON LAYOUT PAPER .. PSEUDOCODE FUNCTIONS IN EACH PROGRAM FIRST.. PSEUDOCODE PARAMETER PASSING BETWEEN PROGRAMS NEXTDETAIL DESIGN / INITIAL TESTING.. PSEUDOCODE INDIVIDUAL PROGRAMS AND THEIR MODULESTHIRD.. IMPLEMENT INCREMENTALLY STARTING WITH ESTABLISHING LINKAGE BETWEEN THE PROGRAMS. STUB THEM OUT... ENSURE LINKAGE IS VIABLE BY PASSING DUMMY PARAMETERS AND RETURNING DUMMY PARAMETERS. .. USE DISPLAY TO ENSURE PARAMETERS ARE PASSED / RETURNED PROPERLY.. DESIGN THE DETAILED LOGIC OF THE WELCOME MENU.. TEST AND ENSURE CORRECT... DESIGN THE DETAILED LOGIC OF MAIN MENU.. TEST MAIN MODULE WITH UPDATE MODULE (STUBBED OUT) USING GOOD DATA PASSED DOWN AND DUMMY DATA PASSED BACK.. CONTINUE.... BUT CONTINUE IMPLEMENTING AND TESTING AS YOU GO......INCREMENTALLY. . MENUS ARE TO HAVE MENU NUMBERS RIGHT JUSTIFIED ON TOPLINE AS DESCRIBED IN HANDOUT. A000 WELCOME, B000 MAIN, B100 UPDATE, B200 LISTS & REPORTS, B300 INQUIRY, B110 ADD, ETC.WELCOME MENU. SHOULD HAVE TITLE OF SYSTEM ON IT, CENTERED, ATTRACTIVE.. SHOULD WELCOME USER TO THE SYSTEM. APRESS ANY KEY TO CONTINUE OR [email protected] MENU. MAIN MENU HANDLER AND DRIVER OF SUBPROGRAMS. MAIN PROGRAM: HANDLE/VALIDATE INITIAL CHOICES USER CAN MAKE. . ALL MENUS ACCOMMODATED IN MAIN PROGRAM.. ALWAYS RETURN INVALID CHOICES IMMEDIATELY AND OFFER OPTION TO CONTINUE OR TERMINATE.. ALL TERMINATING ACCOMMODATED IN MAIN PROGRAM ONLY!!. MAIN PROGRAM DISPLAYS SUBORDINATE MENUS. MAIN PROGRAM FORMATS RESPONSES FROM SUBORDINATE PROGRAMS AND DISPLAYS FOR USER. . AGAIN, AFFORD THE USER APPROPRIATE OPTIONS. ALL MENUS SHOULD ACCEPT THE NUMBER OF THE USER=S CHOICE. (ACCEPT EITHER CASE)SUBMENUS: FUNCTIONS AND PROGRAMS CALLEDUPDATE MENU:. MAIN MENU PROMPTS USER FOR TRANS CODE AND RECORD KEY.. MAIN PROGRAM DOES PRELIMINARY VALIDATION ON A,C,D AND NUMERIC CHECK OF KEY. RETURNS MESSAGES. DO NOT HAVE TO WRITE THESE BASIC ERRORS TO ERROR LIST, IF YOU DO NOT WISH TO.. MAIN PROGRAM OBTAINS REST OF TRANSACTION, AS APPROPRIATE.. MAIN PROGRAM CALLS UPDATE PROGRAM, PASSES THE RECORD AS A PARAMETER. UPDATE PROGRAM WILL ATTEMPT TO CARRY OUT THE TASKING... INVALID TRANSACTION:PROVIDE SUITABLE RESPONSE BACK TO MAIN PROGRAM VIA PARAMETER FOR MAIN PROGRAM TO DISPLAY... VALID TRANSACTION, UPDATE PROGRAM PASSES CONFIRMATION MESSAGE BACK TO MAIN PROGRAM FOR DISPLAYING; UPDATES CHANGE LISTLISTS AND REPORTS MENU:. MAIN PROGRAM DISPLAYS LISTS AND REPORTS MENU. MAIN PROGRAM VALIDATES NUMERIC CHOICE; PROVIDES MESSAGE IF CHOICE NOT NUMERIC. AFFORDS TERMINATION OR CONTINUING, AS USUAL.. MAIN PROGRAM PASSES NUMERIC CHOICE TO SUBPROGRAM.. SUBPROGRAM ACCEPTS NUMERIC PARAMETER AND PRODUCES THE APPROPRIATE REPORT. (FILES SHOULD BE BUILT FROM THE UPDATE PROGRAM. ENSURE WHEN THE UPDATE IS COMPLETE THAT MAIN SENDS MESSAGES TOUPDATE PROGRAM TO CLOSE THE FILES. UPDATE CLOSES THE MASTER FILES AND ALL THESE OTHER SEQUENTIAL FILES TOO.)HARDCOPY OUTPUT IS PRODUCED.CONFIRMATION OF REPORT SPAWNED SHOULD BE RETURNED TO USER.INQUIRY SUBMENU: . MAIN MENU VALIDATES NUMERIC STOCK NUMBER AND HANDLESINVALID INPUTS AS ABOVE.. VALID INPUT: MAIN PASSES STOCK NUMBER TO INQUIRY REPORTS PROGRAM VIA PARAMETER. MAIN RECEIVES (AND DISPLAYS) RETURNED RECORD VIA RETURN PARAMETER.. INVALID RESPONSE FROM SUBPROGRAM: STOCK NUMBER NOT ON FILE. PASS MESSAGE BACK TO MAIN PROGRAM VIA PARAMETER FOR DISPLAY BY MAIN. (MAIN PROGRAM WILL SOLICIT ADDITIONAL REQUESTS OR OFFER TERMINATION TOUSER.)YOU ARE TO PROVIDE FOR RETRIEVAL BY NON-UNIQUE ALTERNATE KEYS: MANUFACTURER AND/OR WAREHOUSE. PROCEDURE IS RATHER SIMPLE:. OFFER ADDITIONAL CHOICES IN INQUIRY MENU: RETRIEVE BY MANUFACTURER; RETRIEVE BY WAREHOUSE NUMBER. IF MANUFACTURER IS SELECTED, THEN YOU MUST USER MUST SUBMIT MANUFACTURER (BE CAREFUL!!! THE CASE OF THE SUBMITTED INQUIRY MUST MATCH THE CASE OF THE MANUFACTURER IN THE DATA SET!!) SIMILARLY, THE WAREHOUSE NUMBER MUST BE VALIDATED (1-4), AS USUAL. IN EITHER EVENT, MORE THAN ONE RECORD WILL BE RETURNED.. FORMATTING: MERELY PRODUCE EACH RETRIEVED RECORD AS ALINE ON THE SCREEN. YOU SHOULD, OF COURSE, WRITE SOME KIND OF HEADING THAT TAGS THE RESPONSES, SUCH AS: RETRIEVED RECORDS FOR MANUFACTURER XXXXXX (WILL DO) OR RETRIEVED RECORDS FOR WAREHOUSE NNN ARE: (WILL ALSO DO). SKIP A LINE OR TWO AND DISPLAY THE RECORDS. . KICKER: YOU DON=T WANT TO SCROLL OFF THE SCREEN, SO ONLY


View Full Document
Loading Unlocking...
Login

Join to view Study Notes and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Study Notes and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?