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,

Slides:



Advertisements
Similar presentations
Modular Design Using Subroutines (functions later)
Advertisements

The Regular Payment of an Annuity. So far, our calculations have been determining these large “Amounts” or “Present Values” with annuities. While that.
Methodology for Program Development Tuition billing program –Specs –File descriptions –Report layout –Processing requirement $200/cr $25 union dues if.
1.4 Programming Tools Flowcharts Pseudocode Hierarchy Chart
Traditional Approach to Design
Programming Logic and Design Fourth Edition, Introductory
Chapter 10 The Traditional Approach to Design
Chapter 2 - Problem Solving
Chapter 2 - Problem Solving
Computational Thinking for Information Technology
Chapter 9: The Traditional Approach to Design Chapter 10 Systems Analysis and Design in a Changing World, 3 rd Edition.
Chapter 2- Visual Basic Schneider
Chapter 4 General Procedures
©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 4 th Ed Chapter Chapter 3 Sample Development Loan Calculator.
The Program Development Cycle and Program Design Tools
Chapter 4 - VB.Net by Schneider1 Chapter 4 General Procedures 4.1 Sub Procedures, Part I 4.2 Sub Procedures, Part II 4.3 Function Procedures 4.4 Modular.
Microsoft Excel How to do a quick loan using PMT.
Chapter 2: Developing a Program Extended and Concise Prelude to Programming Concepts and Design Copyright © 2003 Scott/Jones, Inc.. All rights reserved.
Chapter 3 Planning Your Solution
Review Algorithm Analysis Problem Solving Space Complexity
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and.
© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Tutorial 6 – Car Payment Calculator Application: Introducing.
4-3 LOAN CALCULATIONS AND REGRESSION
Chapter 2: Developing a Program Prelude to Programming Concepts and Design Copyright © 2001 Scott/Jones, Inc.. All rights reserved. 1 Chapter 2 Developing.
Finding the Payment on a Spreadsheet
IO and Module Charts. 1.Input format. 2. Output format. 3. Exception handling. 4.Top-down design.
Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and Elizabeth Drake Chapter 2: Developing a Program.
Simple Program Design Third Edition A Step-by-Step Approach
Chapter 5 - VB 2008 by Schneider1 Chapter 5 - General Procedures 5.1 Sub Procedures, Part I 5.2 Sub Procedures, Part II 5.3 Function Procedures 5.4 Modular.
Design the program Create a detailed description of program –Use charts or ordinary language (pseudocode) Identify algorithms needed –Algorithm: a step-by-step.
Program Design Simple Program Design Third Edition A Step-by-Step Approach 9.
First Steps in Modularization Simple Program Design Third Edition A Step-by-Step Approach 8.
10 The traditional approach to design Hisham Alkhawar.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 2.
Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and Elizabeth Drake Chapter 2: Flowcharts.
© 2011 Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of Stewart Venit ~ Elizabeth Drake Developing a Program.
Intro to Robots Lab 7. Intro to Robots Behaviour-based Robot Control Exercise: Design and implement a behaviour-based program that has a robot moving.
© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Tutorial 6 – Car Payment Calculator Application: Introducing.
COIT29222-Structured Programming Lecture Week 09  Reading: Textbook (4 th Ed.), Chapters 2 & 3 Textbook (6 th Ed.), Chapters 5 & 6 Study Guide Book 3,
General Algorithms for Common Business Problems Simple Program Design Third Edition A Step-by-Step Approach 10.
Cs413_design04.ppt Design and Software Development Design : to create a functional interface that has high usability Development : an organized approach.
The basics of the programming process The development of programming languages to improve software development Programming languages that the average user.
Chapter 8 First steps in modularisation. Objectives To introduce modularisation as a means of dividing a problem into subtasks To present hierarchy charts.
1 Program Planning and Design Important stages before actual program is written.
I can calculate the amount financed on an installment loan. I can find the monthly payment.
1 5.4 Modular Design Top-Down Design Structured Programming Advantages of Structured Programming.
1 Programming Tools Flowcharts Pseudocode Hierarchy Chart Direction of Numbered NYC Streets Algorithm Class Average Algorithm.
Computing Higher – SD Unit - Topic 8 – Procedure and Standard Algorithms P Lynch, St Andrew’s High School Unit 2 Software Development Process Topic.
Chapter 2 - VB 2005 by Schneider- modified by S. Jane '081 Chapter 2 - Problem Solving 2.1 Program Development Cycle 2.2 Programming Tools.
Problem-solving with Computers. 2Outline  Computer System  5 Steps for producing a computer program  Structured program and programming  3 types of.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Expressing Algorithms as Flowcharts and Pseudocode
Related Sample t-test A related sample t-test is used when participants in the two groups are not independent of participants in the other groups. – Repeated.
JavaScript- conditions, Math objects. Generic Representation.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
1 Structured Programming Arab Academy for Science and Technology CC112 Dr. Sherif Mohamed Tawfik The Course.
Structure Charts. Graphical representation of the logic of the program, the decisions made, where they are made, the alternative paths, the data stores,
Algorithms and Flowcharts
Systems Analysis and Design in a Changing World, Fourth Edition
Amalan Kejuruteraan Sem /2014
Chapter 5, section 2 Calculating interest.
Chapter 2- Visual Basic Schneider
Introduction to Programming
Structure Charts Agenda: Use of Structure Charts Symbols How to create.
Break Even Analysis All: Understand / review what is break even analysis Most: calculate and present break even Some: Explain how break even is an internal.
Component-Level Design
Chapter 2- Visual Basic Schneider
Structure Charts Agenda: What are Structure Charts
Chapter 2- Visual Basic Schneider
Advanced Financial Algebra
Presentation transcript:

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, break it down into sub modules. Transcribe the modules into pseudocode. Code the modules using the three logical structures of sequences, decisions, and repetition.

Top-Down Design Criteria The design should be easily readable and emphasize small module size. Modules proceed from general to specific as you read down the chart. The modules, as much as possible, should only perform a single well-defined task. Modules should be as independent of each other as possible.

Write a financial program that displays the monthly payment and total payment on a loan given the loan amount, yearly interest rate and loan duration (in years). The formula used to calculate the monthly payment is: (S*M* (M+1) N )/( (M+1) N )-1) Where M = monthly interest rate N = number of monthly payments S = loan amount

Loan Program Get InputMake Calculations Display Results

Loan Program Get InputMake Calculations Display Results Get Amount Get Duration Get Interest Rate Compute Monthly Payment Compute Total Payment Display Headings Display Amounts

Loan Program Get InputMake Calculations Display Results Get Amount Get Duration Get Interest Rate Compute Monthly Payment Compute Total Payment Display Headings Display Amounts Compute Monthly Interest Rate Compute Number of Months