Uploaded by 43756

Chapter 02, section 3

advertisement

4/10/2020

Chapter 2

Section 3

Mr. Chapman

AUSD

4/10/2020

Steps

•1. Define the problem

•2. Develop an algorithm

•3. Code the program

•4. Test and debug the program

•5. Document and maintain the program

1

Defining the Problem

• What is the program going to do?

• What are the inputs and outputs?

• The key word here is WHAT.

4/10/2020

2

Developing the Algorithm

• A set of sequential instructions.

• Example, a cake recipe

• Flowcharting

• Pseudocode

4/10/2020

3

4/10/2020

Flow Charts

Process

Input/Output

If

4/10/2020

Coding the Program

• Translate pseudocode into instructions

• Use syntax

• Correct coding errors

4

4/10/2020

Testing and Debugging

• Crash

• Runtime errors

• test data

4/10/2020

5

Documenting and Maintaining the Program

• Code documenting

• User documenting

• Flowcharts and pseudocodes

• Program Maintenance

4/10/2020

6

What To Do Now?

• Read Section 2.3

• Do questions 1 to 7 on page 38

• Do Projects 2-2 and 2-3.

• Read about Grace Hopper on page 40/41

7

4/10/2020

Download