Grade 10 program development cycle

26
The Program Development Cycle Grade 10 – Computer Programming

Transcript of Grade 10 program development cycle

Page 1: Grade 10   program development cycle

The Program Development Cycle

Grade 10 – Computer Programming

Page 2: Grade 10   program development cycle

Program Development Cycle

Modern software developers base many of their techniques on traditional approaches to mathematical problem solving.One such approach is based on the how engineers solve problems.

Page 3: Grade 10   program development cycle

Program Development Cycle

Engineers must:

• Design a solution to a problem

• Implement the solution

• Test the solution

• Fix any errors in the solution

Page 4: Grade 10   program development cycle

Program Development Cycle

This approach can be used in computer programming:

• Design a solution to a problem (design a program)

• Implement the solution (code the program )• Test the solution (test the program) • Fix the solution (debug the program)

Page 5: Grade 10   program development cycle
Page 6: Grade 10   program development cycle
Page 7: Grade 10   program development cycle

Program Development CycleOnce the software is working, improvements

can be designed into the system. This leads back to design, creating a four-phase cycle.

Page 8: Grade 10   program development cycle

Program Development Cycle

Page 9: Grade 10   program development cycle

Program Development Cycle

Designing the StructureFind a logical sequence of precise steps that

solve the problem (aka the algorithm). The logical plan may include flowcharts, pseudocode, and top-down charts.

Page 10: Grade 10   program development cycle

Program Development Cycle

Design the interface – Select objects (text boxes,

buttons, etc.).

Determine how to obtain input and how the output will

be displayed. Objects are created to receive input and display

output. Appropriate menus, buttons, etc. are created to allow

user to control the program

Page 11: Grade 10   program development cycle
Page 12: Grade 10   program development cycle
Page 13: Grade 10   program development cycle

Program Development Cycle

Page 14: Grade 10   program development cycle

Program Development Cycle

The program development cycle’s

code phase includes translating a

software design into a particular

language, and then entering that

language on the computer.

During this stage that program is

written.

Page 15: Grade 10   program development cycle
Page 16: Grade 10   program development cycle

Program Development Cycle

Page 17: Grade 10   program development cycle

Program Development Cycle

Testing is the process for finding errors.

Debugging is the process for correcting errors

Does the new method do what it is supposed to do?

This is known as a test for correctness. Tests for

correctness measure whether the program meets the

original specifications.

Page 18: Grade 10   program development cycle

Program Development Cycle

Testing can be rather complicated:

Is the method reasonably efficient? How much time

does it take for the method to complete its task, and

how much space does it use?

Page 19: Grade 10   program development cycle

Program Development Cycle

Testing can be rather complicated:

Does the method have any undesirable side effects?

How does one program affects the performance of

another program, or one method affects another

method?

Page 20: Grade 10   program development cycle

Program Development CycleProgrammers perform unit tests and integration tests.

A unit test checks to see if a method works as expected all by itself.

An integration test checks to see if a method works in combination with other methods.

Page 21: Grade 10   program development cycle

Program Development Cycle

Page 22: Grade 10   program development cycle

Program Development Cycle

The causes of any problems discovered during testing need to be isolated. Here unit tests are most helpful.

Once you know the cause, you can develop a plan for fixing the problem, modify the necessary methods, and then test again.

Page 23: Grade 10   program development cycle

Program Development Cycle

Page 24: Grade 10   program development cycle

Documentation is necessary to allow another programmer or non-programmer to understand the program. Internal documentation, known as comments, are created to assist a programmer. An instruction manual is created for the non-programmer. Documentation should be done during the coding stage.

Documentation

Page 25: Grade 10   program development cycle
Page 26: Grade 10   program development cycle