Top-Down Design & JSP
This presentation is the property of its rightful owner.
Sponsored Links
1 / 36

Materials Prepared by Dhimas Ruswanto , BMm PowerPoint PPT Presentation


  • 80 Views
  • Uploaded on
  • Presentation posted in: General

Top-Down Design & JSP. Skill Area Part D. Materials Prepared by Dhimas Ruswanto , BMm. Lecture Overview. Top-Down Design Modular Development JSP Program Documentation. Top-down design. It is easier to solve small problems than it is to solve big ones. It’s hard to solve big problems.

Download Presentation

Materials Prepared by Dhimas Ruswanto , BMm

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


Materials prepared by dhimas ruswanto bmm

Top-Down Design & JSP

Skill Area Part D

Materials Prepared by DhimasRuswanto, BMm


Lecture overview

Lecture Overview

  • Top-Down Design

  • Modular Development

  • JSP

  • Program Documentation


Top down design

Top-down design


Big problems

It is easier to solve small problems than it is to solve big ones

It’s hard to solve big problems

Big Problems

Computer programmers use a divide and conquer approach to problem solving:

  • a problem is broken into parts

  • those parts are solved individually

  • the smaller solutions are assembled into a big solution

These techniques are known as top-down designand modular development.


Top down design1

Top-down design is the process of designing a solution to a problem by systematically breaking a problem into smaller, more manageable parts.

Top-down Design


Top down design2

Top-down Design

First, start with a clear statement of the problem or concept – a single big idea.


Top down design3

Top-down Design

Next, break it down into several parts.


Top down design4

Top-down Design

Next, break it down into several parts.

If any of those parts can be further broken down, then the process continues…


Top down design5

Top-down Design

Next, break it down into several parts.

If any of those parts can be further broken down, then the process continues…

…and so on


Top down design6

Top-down Design

The final design might look something like this organizational chart, showing the overall structure of separate units that form a single complex entity.


Top down design7

Top-down Design

An organizational chart is like an upside down tree, with nodes representing each process.


Top down design8

Top-down Design

An organizational chart is like an upside down tree, with nodes representing each process.

The leafnodesare those at the end of each branch of the tree.


Top down design9

Top-down Design

The leaf nodes represent modules that need to be developed and then recombined to create the overall solution tothe original problem.

Top-down design leads to modulardevelopment.


Modular development

Modular Development

Modular development is the process of developing software modules individually…


Modular development1

Modular Development

Modular development is the process of developing software modules individually…

…then combining the modules to form a solution to an overall problem.


Modular development advantages

Modular DevelopmentAdvantages

  • Modular development of computer software:

  • makes a large project more manageable

  • is faster for large projects

  • leads to a higher quality product

  • makes it easier to find and correct errors

  • increases the reusability of solutions


Modular development advantages1

Modular DevelopmentAdvantages

… makes a large project more manageable.

Smaller and less complex tasks are easier to understand than larger ones and are less demanding of resources.


Modular development advantages2

Modular DevelopmentAdvantages

… is faster for large projects.

Different people can work on different modules, and then put their work together. This means that different modules can be developed at the same time, which speeds up the overall project.


Modular development advantages3

Modular DevelopmentAdvantages

…leads to a higher quality product.

Programmers with knowledge and skills in a specific area, such as graphics, accounting, or data communications, can be assigned to the parts of the project that require those skills.


Modular development advantages4

Modular DevelopmentAdvantages

  • …makes it easier to find and correct errors.

    Often, the hardest part of correcting an error in computer software is finding out exactly what is causing the error. Modular development makes it easier to isolate the part of the software that is causing trouble.


Modular development advantages5

Modular DevelopmentAdvantages

… increases the reusability of solutions.

Solutions to smaller problems are more likely to be useful elsewhere than solutions to bigger problems.

They are more likely to be reusable code.


Jackson structured programming

Jackson Structured Programming


Jackson structure diagram

Jackson Structure Diagram

  • Another Top-down design leads is Jackson Structure Diagram

  • The Jackson Structure Diagram is a notation used in JSP (Jackson Structured Programming),


Jackson structured programming1

  • JSP was developed in the 1970’s by Michael Jackson.

  • A JSP is used to explain the inner workings of a program.

  • There are three types of “box” notations used to represent the workings of a program:

Jackson Structured Programming


Jsp sequence

JSP Sequence


Jsp sequence examples

JSP Sequence (Examples)


Jsp selection

JSP Selection


Jsp selection examples

JSP Selection (Examples)


Jsp selection examples1

JSP Selection (Examples)


Jsp iteration

JSP Iteration


Jsp iteration examples

JSP Iteration (Examples)


Program documentation

Program Documentation


Program documentation1

  • Why is program documentation important?

  • To describe the design of you program.

  • To tell other programmers what the program does and how it works

  • Can help programmer who is making the modifications understand another programmer’s code

Program Documentation


Essential elements of program documentation

  • For an individual module:

  • Who has written the module

  • When the module was written or modified

  • Why the module was written or modified

  • How the module interacts with other modules

  • What special algorithms were used

  • Acknowledge outside sources for ideas and algorithms

Essential Elements of Program Documentation


Essential elements of program documentation1

  • For data structures:

  • What data structure is used

  • Why a particular structure was used

  • What data is contained in the structure

  • How the data structure is implemented

Essential Elements of Program Documentation


Summary

  • Top-down design is the process of designing a solution to a problem by systematically breaking a problem into smaller, more manageable parts.

  • Modular development is the process of developing software modules individually then combining the modules to form a solution to an overall problem.

  • A JSP is used to explain the inner workings of a program.

  • Why is program documentation important?

    • To describe the design of you program.

    • To tell other programmers what the program does and how it works

    • Can help programmer who is making the modifications understand another programmer’s code

SUMMARY


  • Login