Introducing 

Prezi AI.

Your new presentation assistant.

Refine, enhance, and tailor your content, source relevant images, and edit visuals quicker than ever before.

Loading…
Transcript

Creating a program

It is all in the design

The design process

You need a plan

The design process

Analysis

1. Identify what exactly the problem to be solved is.

2. Try to understand it as much as possible.

3. Worry about the WHAT not the HOW

- Algorithm not code

I know you think you understand what you thought I said but I'm not sure you realize that what you heard is not what I meant.

Specifications

Describe what your program will do.

Specifications

1. Don't worry about how the program will work.

2. Worry about what it will do

Design

1. Formulate overall structure of the program

2. This HOW the program gets done

Pseudocode

  • Pseudocode is plain English that describes

what a program does, step by step.

  • Using pseudocode, we can concentrate on

the algorithm rather than the programming

language.

  • Sometimes this is a ‘first person’ scenario

Pseudocode

Implement

Translate the design into a computer language

Finally some code!

Implement

A good design can be implemented in any language

Test

Design your test cases.

Try out your program to see if it worked.

Do you get the result you expected?

If there are any errors (bugs), they need to be located and fixed.

Test

Temperature Converter

Test cases

>>>

What is the Celsius temperature? 0

The temperature is 32.0 degrees Fahrenheit.

>>> main()

What is the Celsius temperature? 100

The temperature is 212.0 degrees Fahrenheit.

>>> main()

What is the Celsius temperature? 37

The temperature is 98.6 degrees Fahrenheit

>>> main()

What is the Celsius temperature? -40

The temperature is -40.0 degrees Fahrenheit.

>>>

Learn more about creating dynamic, engaging presentations with Prezi