Essay

Submitted by: Submitted by

Views: 282

Words: 1240

Pages: 5

Category: Business and Industry

Date Submitted: 08/14/2012 12:50 AM

Report This Essay

Simple Program Design

"Appendix 1: Flowcharts"

Chapter Outline

Flowcharts

The Three Basic Control Structures

1 Sequence

2 Selection

3 Repetition

Simple Algorithms That Use The Sequence Control Structure

Example 3.1 Add Three numbers

A defining diagram

B Solution algorithm

Example 3.2 Find average temperature

A Defining diagram

B Solution algorithm

Example 3.3 Calculate mowing time

A Defining diagram

B Solution algorithm

Flowcharts and the Selection Control Structure

Simple IF statement

Null ELSE statement

Combined IF statement

Nested IF statement

Simple Alogrithms That Use the Selection Control Structure

Example 4.1 Read three characters

A Defining diagram

B Solution algorithm

Example 4.2 Process customer record

A Defining diagram

B Solution algorithm

Example 4.3 Calculate employee's pay

A Defining diagram

B Solution algorithm

The CASE Structure Expressed as a Flowchart

Example 4.4 Process customer record

A Defining diagram

B Solution Algorithm

Flowchart and the Repetition Control Structure

Simple Algorithms That Use the Repetition Control Structure

Example 5.1 Fahrenheit-Celsius conversion

A Defining diagram

B Solution algorithm

Example 5.2 Print examination scores

A Defining diagram

B Solution alogorithm

Example 5.3 Process student enrolments

A Defining diagram

B Solution algorithm

Example 5.4 Process inventory items

A Defining diagram

B Solution algorithm

Flowcharts and Modules

Example 8.1 Read three...