3.1.3 program flow control_1 understand the need for structure breaking things down
TRANSCRIPT
![Page 1: 3.1.3 Program Flow control_1 Understand the need for structure Breaking things down](https://reader035.vdocument.in/reader035/viewer/2022072005/56649cc95503460f9499186f/html5/thumbnails/1.jpg)
3.1.3 Program Flow control_1
Understand the need for structureBreaking things down
![Page 2: 3.1.3 Program Flow control_1 Understand the need for structure Breaking things down](https://reader035.vdocument.in/reader035/viewer/2022072005/56649cc95503460f9499186f/html5/thumbnails/2.jpg)
Start - Keyword challenge – so far...
Object Orientated Programming
Information
AlgorithmArray / list
Assignment
Identifier
Data
Boolean
Real / Float
Integer
Constant
Variable
Data structure
Binary
System
Pseudocode
![Page 3: 3.1.3 Program Flow control_1 Understand the need for structure Breaking things down](https://reader035.vdocument.in/reader035/viewer/2022072005/56649cc95503460f9499186f/html5/thumbnails/3.jpg)
Lesson outcomes
• Understand why we should design a programming solution
• Know the difference between a structure chart and a flow chart
• Be able to feedback why its an advantage to have structured programming.
• Be able to feedback the 3 fundamental building blocks in programming structures
![Page 4: 3.1.3 Program Flow control_1 Understand the need for structure Breaking things down](https://reader035.vdocument.in/reader035/viewer/2022072005/56649cc95503460f9499186f/html5/thumbnails/4.jpg)
Quick one - Why design?
Give 5 reasons why you would take time to design and plan a program solution before sitting and coding it...
![Page 5: 3.1.3 Program Flow control_1 Understand the need for structure Breaking things down](https://reader035.vdocument.in/reader035/viewer/2022072005/56649cc95503460f9499186f/html5/thumbnails/5.jpg)
Quick one - Why design?
Give 5 reasons why you would take time to design and plan a program solution before sitting and coding it...
The name given to this planning is called:
Control structured programming
![Page 6: 3.1.3 Program Flow control_1 Understand the need for structure Breaking things down](https://reader035.vdocument.in/reader035/viewer/2022072005/56649cc95503460f9499186f/html5/thumbnails/6.jpg)
Program Control Structure
Brief introduction to the fundamental building blocks in structured programming.
1. Sequence - 2. Selection - 3. Iteration (looping, repetition) -
![Page 7: 3.1.3 Program Flow control_1 Understand the need for structure Breaking things down](https://reader035.vdocument.in/reader035/viewer/2022072005/56649cc95503460f9499186f/html5/thumbnails/7.jpg)
Why break programming down?(Revision from before half term)
• Why is it an advantage to have structured programs?
Scenario:• You have been asked to create a coded solution
that works out employees wages each month.
• We have already said that we wouldn’t just dive in – we would design it first.
![Page 8: 3.1.3 Program Flow control_1 Understand the need for structure Breaking things down](https://reader035.vdocument.in/reader035/viewer/2022072005/56649cc95503460f9499186f/html5/thumbnails/8.jpg)
Why break programming down?(Revision from before half term)
Scenario:• You have been asked to create a coded
solution that works out employees wages each month.
• Lets try and break down the task into smaller tasks. (MODULES)
![Page 9: 3.1.3 Program Flow control_1 Understand the need for structure Breaking things down](https://reader035.vdocument.in/reader035/viewer/2022072005/56649cc95503460f9499186f/html5/thumbnails/9.jpg)
Why break programming down?(Revision from before half term)
What’s the advantage? Answer these:
Common sense:
1. What advantage is there to splitting a coded solution up into smaller defined modules?
2. What advantage is there to a group of programmers working on smaller defined modules?
3. What advantage is there to working with smaller modules if the program needs updating or replacing?
![Page 10: 3.1.3 Program Flow control_1 Understand the need for structure Breaking things down](https://reader035.vdocument.in/reader035/viewer/2022072005/56649cc95503460f9499186f/html5/thumbnails/10.jpg)
Quick break – another reason to use structured program control
Spaghetti code!
![Page 11: 3.1.3 Program Flow control_1 Understand the need for structure Breaking things down](https://reader035.vdocument.in/reader035/viewer/2022072005/56649cc95503460f9499186f/html5/thumbnails/11.jpg)
Quick break – another reason to use structured program control
10 i = 0 20 i = i + 1 30 PRINT i; " squared = "; i * i 40 IF i >= 10 THEN GOTO 60 50 GOTO 20 60 PRINT "Program Completed." 70 END
Spaghetti code!
Using ‘For’ and ‘while’ loops
Action 1 Action 2 Action 3 Action 4
![Page 12: 3.1.3 Program Flow control_1 Understand the need for structure Breaking things down](https://reader035.vdocument.in/reader035/viewer/2022072005/56649cc95503460f9499186f/html5/thumbnails/12.jpg)
Breaking down and solving problems in a graphical way...
• Structure chart
“A breakdown of the different parts of a system”
![Page 13: 3.1.3 Program Flow control_1 Understand the need for structure Breaking things down](https://reader035.vdocument.in/reader035/viewer/2022072005/56649cc95503460f9499186f/html5/thumbnails/13.jpg)
![Page 14: 3.1.3 Program Flow control_1 Understand the need for structure Breaking things down](https://reader035.vdocument.in/reader035/viewer/2022072005/56649cc95503460f9499186f/html5/thumbnails/14.jpg)
Breaking down and solving problems in a graphical way...
• For smaller – coding projects:
• Top down structured flowchart methodology
• “A breakdown of the different parts of an algorithm or process”
![Page 15: 3.1.3 Program Flow control_1 Understand the need for structure Breaking things down](https://reader035.vdocument.in/reader035/viewer/2022072005/56649cc95503460f9499186f/html5/thumbnails/15.jpg)
Pay > 40K
Pay income tax at 40% Pay income tax at 10%
true
false
![Page 16: 3.1.3 Program Flow control_1 Understand the need for structure Breaking things down](https://reader035.vdocument.in/reader035/viewer/2022072005/56649cc95503460f9499186f/html5/thumbnails/16.jpg)
Breaking down and solving problems in a graphical way...
![Page 17: 3.1.3 Program Flow control_1 Understand the need for structure Breaking things down](https://reader035.vdocument.in/reader035/viewer/2022072005/56649cc95503460f9499186f/html5/thumbnails/17.jpg)
Keywords/phrases used this lesson
• Sequence• Iteration• Selection• Program flow• Flow chart• Structure chart• Modules• Algorithm• Spaghetti code
![Page 18: 3.1.3 Program Flow control_1 Understand the need for structure Breaking things down](https://reader035.vdocument.in/reader035/viewer/2022072005/56649cc95503460f9499186f/html5/thumbnails/18.jpg)
Snakes and ladders – complete this flowchartStart
End
Slide down snakeyes
yes
no
no