Presentation is loading. Please wait.

Presentation is loading. Please wait.

Methodology for Program Development Tuition billing program –Specs –File descriptions –Report layout –Processing requirement $200/cr $25 union dues if.

Similar presentations


Presentation on theme: "Methodology for Program Development Tuition billing program –Specs –File descriptions –Report layout –Processing requirement $200/cr $25 union dues if."— Presentation transcript:

1 Methodology for Program Development Tuition billing program –Specs –File descriptions –Report layout –Processing requirement $200/cr $25 union dues if a member (“Y” in that column) Activity Fee based on the number of credits taken Scholarship money Print out report

2 Figure 3.1Record Layout & Report Format for Tuition Billing Program STUDENT NAME LASTGPA INITIALS CREDITSUNION MEMBER SCHOLARSHIP

3 Structured Design Identification of tasks Development of hierarchy chart –Must provide for every function Evaluating the hierarchy chart –Completeness Can’t break down any further –Functionality Each module has a single function –Span of control

4 Figure 3.2 Overall COBOL Hierarchy Chart ANY COBOL PROGRAM TERMINATIONPROCESSINGINITIALIZATION

5 Figure 3.3c Hierarchy Chart for Tuition Billing Program COMPUTE INDIVIDUAL BILL INCREMENT UNIVERSITY TOTALS WRITE DETAIL LINE READ STUDENT FILE PREPARE TUITION REPORT WRITE HEADING LINE READ STUDENT FILE PROCESS STUDENT RECORD WRITE UNIVERSITY TOTALS 4th Level Processing Requirements 3a(1) Compute tuition 3a(2) Compute union fee 3a(3) Compute activity fee 3a(4) Compute scholarship COMPUTE TUITION COMPUTE UNION FEE COMPUTE ACTIVITY FEE COMPTUE SCHOLARSHIP (c) Complete Hierarchy Chart (Levels 1-4)

6 Structured Programming Three logic structures –Sequence Sequentially run instructions –Selection If … Then…Else –Iteration Do … While Extension of the basic structure (case) –Many if … then One entry point/one exit point Sufficiency of the basic structure –Any logic can be formed from these above

7 Open files Write heading line(s) Read STUDENT-FILE at end indicate no more data DO WHILE data remains Compute tuition = 200 * credits IF union member union fee = $25 ELSE union fee = 0 ENDIF DO CASE CASE credits 6 and 12 Activity fee = 75 ENDCASE IF gpa > 2.5 Scholarship = Scholarship amount ELSE (no scholarship) Scholarship = 0 ENDIF Compute bill = Tuition + Union fee + Activity fee - Scholarship Increment university totals Write detail line Read STUDENT-FILE at end indicate no more data ENDDO Write university totals Close files Stop run (b) Detailed pseudocode Figure 3.8Pseudocode for Tuition Billing Program

8 Top-Down Testing Testing each module you code in Evaluation of Program logic Program stubs Continuous Testing

9 Summary Specs Design –Identify each task to be done Hierarchy Chart Logic One entry & one exit point Pseudocode Testing as you go


Download ppt "Methodology for Program Development Tuition billing program –Specs –File descriptions –Report layout –Processing requirement $200/cr $25 union dues if."

Similar presentations


Ads by Google