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

Slides:



Advertisements
Similar presentations
Lecture 7: Software Design (Part II)
Advertisements

Chapter 3: Modularization
Chapter 2: Modularization
Chapter 2: Problem Solving
Chapter 4 The Identification, Environment, and Data Divisions.
Repetition Control Structures School of Business Eastern Illinois University © Abdou Illia, Spring 2003 (Week 9, Friday 3/07/2003)
Figure 3.4The Building Blocks of Structured Programming A B (a) Sequence BA CONDITION? (b) Selection : ENTRYEXIT A B N (d) Case CONDITION? A (c) Iteration.
Understanding the Three Basic Structures
Programming Logic and Design Fourth Edition, Introductory
Programming Logic and Design Seventh Edition
Computer Science: A Structured Programming Approach Using C Converting File Type A rather common but somewhat trivial problem is to convert a text.
Programming Logic and Design, Third Edition Comprehensive
Programming Logic and Design Seventh Edition
Steps in Program Development
Jump to first page 1 System Design (Finalizing Design Specifications) Chapter 3d.
Modules, Hierarchy Charts, and Documentation
Chapter 13 Finalizing Design Specifications
An Object-Oriented Approach to Programming Logic and Design Chapter 6 Looping.
COBOL for the 21 st Century Stern, Stern, Ley Chapter 1 INTRODUCTION TO STRUCTURED PROGRAM DESIGN IN COBOL.
COMP An Introduction to Computer Programming : University of the West Indies COMP6015 An Introduction to Computer Programming Lecture 02.
Structured COBOL Programming, Stern & Stern, 9th edition
CPS 120: Introduction to Computer Science
System Flow Charts A modeling method that analysts may use to
Combination of Sequence, Selection and Repetition
Simple Program Design Third Edition A Step-by-Step Approach
CIS Computer Programming Logic
Designing and Debugging Batch and Interactive COBOL Programs Chapter 5.
Logic Structure - focus on looping Please use speaker notes for additional information!
UNIT 1 UNIT 1 Stephen S. Linkin Houston Community College System 8/28/ Copywrite © Houston Community College System 2007 Graphics Courtesy of IBM.
Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and Elizabeth Drake Chapter 2: Flowcharts.
Printing on power systems Program/ Command Data Report Layout (Printer File) Job Output Queue *FILE Spooled File.
Indexed Files continued. Figure 17.1 Sequential Update OLD MASTER TRANSACTION NEW MASTER ERROR MESSAGES UPDATE PROGRAM.
BACS 287 Programming Logic 1. BACS 287 Programming Basics There are 3 general approaches to writing programs – Unstructured – Structured – Object-oriented.
1 The Procedure Division Chapter 4. 2 Main Two Sections File Section –Used to define files and record formats –Field names within records Working Storage.
Lesson Year 1 CS112/0401/V1 LESSON 6 DESIGN TOOL PSEUDOCODE  Program Design Language (PDL)  Represent logic in English-like manner  Easier to.
Any Questions? Control Breaks Agenda Control Breaks –Also known as Reports with sub-totals.
1 Programming with MATLAB ผศ. ดร. อนันต์ ผลเพิ่ม Anan Phonphoem
Structured COBOL Programming Nancy Stern Hofstra University Robert A. Stern Nassau Community College James P. Ley University of Wisconsin-Stout.
The world of Constructs Control Structures. The three Structures Sequence Selection Loop Entry Exit.
5-1 Structured COBOL Programming Nancy Stern Hofstra University Robert A. Stern Nassau Community College James P. Ley University of Wisconsin-Stout John.
Chapter 8 First steps in modularisation. Objectives To introduce modularisation as a means of dividing a problem into subtasks To present hierarchy charts.
First Steps in Modularization. Simple Program Design, Fourth Edition Chapter 8 2 Objectives In this chapter you will be able to: Introduce modularization.
Modular Design Top-Down Design. Design is represented by a hierarchy chart. Break a problem into individual tasks or modules. If a module is too complex,
1 Chapter 5 – The Procedure Division File handling statements –OPEN statement Initiates processing for a file Input Output Each file opened must have been.
1 Pertemuan 25 Bahasa-bahasa Pemrograman Matakuliah: T0604-Pengantar Teknologi Informasi Tahun: 2008 Versi: 2.0/0.0 Williams, B.K, Stacy C. Sawyer (2007).
1.  Introduction  The Benefits of the Report Writer Module ◦ For Detail and Summary Printing ◦ For Control Break Processing ◦ For Printing Headings.
DOWHILE: Trailer Record Logic
Lecture 21 ENVIRONMENT DIVISION  defines files external to the program and devices.  contains two sections: 1.CONFIGURATION SECTION.  identifies computers.
COBOL for the 21 st Century Nancy Stern Hofstra University Robert A. Stern Nassau Community College James P. Ley University of Wisconsin-Stout (Emeritus)
Problem-solving with Computers. 2Outline  Computer System  5 Steps for producing a computer program  Structured program and programming  3 types of.
Programming Logic and Design Fifth Edition, Comprehensive
CMSC 104, Section 301, Fall Lecture 18, 11/11/02 Functions, Part 1 of 3 Topics Using Predefined Functions Programmer-Defined Functions Using Input.
Pseudocode. Algorithm A procedure for solving a problem in terms of the actions to be executed and the order in which those actions are to be executed.
Flow Charts And Pseudo Codes Grade 12. An algorithm is a complete step-by- step procedure for solving a problem or accomplishing a task.
Algorithms IV Top-Down Design.
Submitting Instructions on web site CS 1024 students Read guide
Chapter 2- Visual Basic Schneider
Structure Charts Agenda: Use of Structure Charts Symbols How to create.
A Beginner’s Guide to Programming Logic, Introductory
Designing and Debugging Batch and Interactive COBOL Programs
Any Questions?.
STRUCTURED CONTROL: BASIC CONTROL OPERATORS
An Introduction to Structured Program Design in COBOL
Structured COBOL Programming
Understanding the Three Basic Structures
Iteration: Beyond the Basic PERFORM
Chapter 2- Visual Basic Schneider
Structure Charts Agenda: What are Structure Charts
Chapter 2- Visual Basic Schneider
CHAPTER 17 The Report Writer Module
Presentation transcript:

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

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

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

Figure 3.2 Overall COBOL Hierarchy Chart ANY COBOL PROGRAM TERMINATIONPROCESSINGINITIALIZATION

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)

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

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

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

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