materials prepared by dhimas ruswanto , bmm

32
Materials Prepared by Dhimas Ruswanto, BMm Top-Down Design & JSP Skill Area 305.2

Upload: gamada

Post on 23-Feb-2016

39 views

Category:

Documents


0 download

DESCRIPTION

Top-Down Design & JSP. Skill Area 305.2. Materials Prepared by Dhimas Ruswanto , BMm. Lecture Overview. Top-Down Design Modular Development JSP. Top-down design. It is easier to solve small problems than it is to solve big ones. It’s hard to solve big problems. Big Problems. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Materials Prepared by  Dhimas Ruswanto ,  BMm

Materials Prepared by Dhimas Ruswanto, BMm

Top-Down Design & JSPSkill Area 305.2

Page 2: Materials Prepared by  Dhimas Ruswanto ,  BMm

Lecture Overview

• Top-Down Design• Modular Development

• JSP

Page 3: Materials Prepared by  Dhimas Ruswanto ,  BMm

TOP-DOWN DESIGN

Page 4: Materials Prepared by  Dhimas Ruswanto ,  BMm

Big ProblemsIt’s hard to solve big problems

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

• a problem is broken into parts• those parts are solved individually • the smaller solutions are assembled into a big

solution

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

These techniques are known as top-down design and modular development.

Page 5: Materials Prepared by  Dhimas Ruswanto ,  BMm

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

Page 6: Materials Prepared by  Dhimas Ruswanto ,  BMm

Top-down Design

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

Big Idea

Page 7: Materials Prepared by  Dhimas Ruswanto ,  BMm

Top-down Design

Big Idea

Part I Part IIIPart II

Next, break it down into several parts.

Page 8: Materials Prepared by  Dhimas Ruswanto ,  BMm

Top-down Design

Next, break it down into several parts.

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

Big Idea

Part I Part IIIPart II

II.B II.C III.A

III.B

II.A

Page 9: Materials Prepared by  Dhimas Ruswanto ,  BMm

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

Big Idea

Part I Part IIIPart II

II.B II.C III.A

III.B

II.A

II.B.1

II.B.2

Page 10: Materials Prepared by  Dhimas Ruswanto ,  BMm

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.

Big Idea

Part I Part IIIPart II

II.B II.C III.A

III.B

II.A

II.B.1

II.B.2

Page 11: Materials Prepared by  Dhimas Ruswanto ,  BMm

Top-down Design

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

Big Idea

Part I Part IIIPart II

II.B II.C III.A

III.B

II.A

II.B.1

II.B.2

Page 12: Materials Prepared by  Dhimas Ruswanto ,  BMm

Top-down Design

Big Idea

Part I Part IIIPart II

II.B II.C III.A

III.B

II.A

II.B.1

II.B.2

An organizational chart is like an upside down tree, with nodes representing each process. The leaf nodes are those at the end of each branch of the tree.

Page 13: Materials Prepared by  Dhimas Ruswanto ,  BMm

Top-down Design

Big Idea

Part I Part IIIPart II

II.B II.C III.A

III.B

II.A

II.B.1

II.B.2

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 modular development.

Page 14: Materials Prepared by  Dhimas Ruswanto ,  BMm

Modular Development

Part I

II.C III.A

III.B

II.A

II.B.1

II.B.2

Modular development is the process of developing software modules individually…

Page 15: Materials Prepared by  Dhimas Ruswanto ,  BMm

Modular Development

Big Idea

Part I Part IIIPart II

II.B II.C III.A

III.B

II.A

II.B.1

II.B.2

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

Page 16: Materials Prepared by  Dhimas Ruswanto ,  BMm

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

Page 17: Materials Prepared by  Dhimas Ruswanto ,  BMm

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.

Page 18: Materials Prepared by  Dhimas Ruswanto ,  BMm

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.

Page 19: Materials Prepared by  Dhimas Ruswanto ,  BMm

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.

Page 20: Materials Prepared by  Dhimas Ruswanto ,  BMm

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.

Page 21: Materials Prepared by  Dhimas Ruswanto ,  BMm

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.

Page 22: Materials Prepared by  Dhimas Ruswanto ,  BMm

JACKSON STRUCTURED PROGRAMMIN

G

Page 23: Materials Prepared by  Dhimas Ruswanto ,  BMm

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),

Page 24: Materials Prepared by  Dhimas Ruswanto ,  BMm

Jackson Structured Programming•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:

Page 25: Materials Prepared by  Dhimas Ruswanto ,  BMm

JSP Sequence

Page 26: Materials Prepared by  Dhimas Ruswanto ,  BMm

JSP Sequence (Examples)

Page 27: Materials Prepared by  Dhimas Ruswanto ,  BMm

JSP Selection

Page 28: Materials Prepared by  Dhimas Ruswanto ,  BMm

JSP Selection (Examples)

Page 29: Materials Prepared by  Dhimas Ruswanto ,  BMm

JSP Selection (Examples)

Page 30: Materials Prepared by  Dhimas Ruswanto ,  BMm

JSP Iteration

Page 31: Materials Prepared by  Dhimas Ruswanto ,  BMm

JSP Iteration (Examples)

Page 32: Materials Prepared by  Dhimas Ruswanto ,  BMm

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.