1 AVCE ICT Unit 7 - Programming Session 8 – Documenting your programs.

13
1 AVCE ICT Unit 7 - Programming Session 8 – Documenting your programs

Transcript of 1 AVCE ICT Unit 7 - Programming Session 8 – Documenting your programs.

Page 1: 1 AVCE ICT Unit 7 - Programming Session 8 – Documenting your programs.

1

AVCE ICT Unit 7 - Programming

Session 8 – Documenting your programs

Page 2: 1 AVCE ICT Unit 7 - Programming Session 8 – Documenting your programs.

2

Program design

You should have analysed the user requirements and produced a specificationThis is only the start of the design process – you might have to “return to the drawing board” many times before the program is finished

Page 3: 1 AVCE ICT Unit 7 - Programming Session 8 – Documenting your programs.

3

The Software Development Lifecycle

This is an idea used by software designers that the whole process can be thought of as a cycleThe stages are: Analyse the problem Produce a specification Produce the program Test it Evaluate how well it met the original

need

Page 4: 1 AVCE ICT Unit 7 - Programming Session 8 – Documenting your programs.

4

The Software Development Lifecycle

Can be a linear process Start at one end and work to the other

A circular process If it didn’t meet the original needs

totally, go back to the start refining your original idea

This can also be thought of as a spiral Hopefully, you will reach the end

where no further refinement is needed

Page 5: 1 AVCE ICT Unit 7 - Programming Session 8 – Documenting your programs.

5

Documentation

This is the weak point for many programmersIt isn’t a good idea to do all design work on a computerYou wouldn’t start building a house without plans!

Page 6: 1 AVCE ICT Unit 7 - Programming Session 8 – Documenting your programs.

6

Documentation

Sketches can be used to show the user interfaceThe program flow can be shown by using Jackson Structure Diagrams or flowchartsCode can be written in a general form called structured English or pseudocode This can then be converted into any programming language

Page 7: 1 AVCE ICT Unit 7 - Programming Session 8 – Documenting your programs.

7

Documentation

Design happens in stages and your documentation should be broken down to show thisUsing VB, many programmers start with the interfaceThey then code the controls as neededYou still need to have an overall plan though

Page 8: 1 AVCE ICT Unit 7 - Programming Session 8 – Documenting your programs.

8

Flowcharts

Can be used to show program flowUse standard symbols A

Process

A decision (If…..Then)

Start or End

Disk storage

Manualinput

Page 9: 1 AVCE ICT Unit 7 - Programming Session 8 – Documenting your programs.

9

Task

Prepare a flowchart for making beans on toastPrepare a flowchart for a program that adds together two numbers

Page 10: 1 AVCE ICT Unit 7 - Programming Session 8 – Documenting your programs.

10

Jackson Structure Diagrams

These are diagrams that show the sub procedures that make up a whole programDeveloped by one Michael Jackson (honestly) in the 1970sThey are “read” from left to rightMajor processes are shown along the topElementary (the most broken down) sub processes are shown along the bottom

Page 11: 1 AVCE ICT Unit 7 - Programming Session 8 – Documenting your programs.

11

Assignment tasks

You will be required to produce several pieces of documentation: A user manual Technical documentation including

specification, design diagrams, pseudocode, interface design plus actual screen images and code printouts

Page 12: 1 AVCE ICT Unit 7 - Programming Session 8 – Documenting your programs.

12

Jackson Structure Diagrams

Symbols are used in the box to show if it is an iteration (loop) processOr a selection (If …Then) processOrdinary sequential flow does not have an additional symbolThe handout has tasks to complete

Page 13: 1 AVCE ICT Unit 7 - Programming Session 8 – Documenting your programs.

13

Return to main menu