Computing Year 7 Flowcharts and Problem Solving Study Booklet - 1
Computing Year 7 Flowcharts and Problem Solving Study Booklet - 1
Name: ________________________________________________________
Form: __________________________________________________________
3
Study Point 1 – Algorithms
Think about an algorithm for getting dressed in the morning. What if you
put on your coat before your jumper? Your jumper would be on top of
your coat and that would be silly!
4
Study Point 1 – Algorithms Self quiz
Attempt 1
1. What is an algorithm?
5
7. What’s the benefit of using flowcharts?
8. What is pseudocode?
9.
6
Attempt 2
1. What is an algorithm?
9.
8
Study Point 1 – Algorithm short answer questions
Write an algorithm for a 3-year-old outlining how to cross the road using traffic
lights?
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
9
Design a flowchart for the answer to the previous question (how to cross the
road)?
10
Study Point 2 – Sequencing and flowchart symbols
11
Flowchart Symbols
Start / Stop terminal shows when the
flowchart starts and ends
12
Study Point 2 – Sequencing and flowchart symbols self quiz
Attempt 1
13
6. What is a start/stop terminal?
Attempt 2
14
2. Why are flowcharts and algorithms built?
15
8. What is the process of a process symbol?
16
Study Point 2 – Sequencing and flowchart symbols short
answer questions
17
Describe an example scenario where two decision symbols can be used in the
same flowchart
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
_______________________________________________________________
How can a flowchart be used to help design a product such as a computer game?
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
How can you tell the difference between an input and an output in a flowchart?
________________________________________________________________
________________________________________________________________
18
Most programs are developed using programming languages. These
languages have specific syntax that must be used so that the program
will run properly. Pseudocode is not a programming language, it is a
simple way of describing a set of instructions that does not have to use
specific syntax.
Pseudocode often uses specific words that are common in programming.
19
20
Study Point 3 – Pseudocode self quiz
Attempt 1
4. What is pseudocode?
22
Attempt 2
4. What is pseudocode?
23
8. What does the term ‘WHILE’ mean?
24
Study Point 3 – Pseudocode short answer questions
25
Write a pseudocode solution to draw a triangle using a FOR loop?
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
26
Study Point 4 - Flowcharts
These are commonly used to program objects with instructions that control what the
object will do.
An example of a simple flowchart this one, showing how to control an automatic vehicle
barrier at a carpark. The control system specifications are as follows:
27
Study Point 4 - Flowcharts self quiz
Attempt 1
1. What is a flowchart?
4. Once the barrier is opened, how long does it stay open for?
28
8. How many input/out symbols are there?
29
Attempt 2
1. What is a flowchart?
4. Once the barrier is opened, how long does it stay open for?
30
8. How many input/out symbols are there?
31
Study Point 4 - Flowcharts short answer questions
If you wanted the barriers to open and close at a slower speed, what would you
change about the flowchart?
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
32
Write the pseudocode for the vehicle barrier flowchart?
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
33
Study Point 5 – Flowcharts
Using system flowchart ideas
This system flowchart is a diagram for a 'cruise control' for a car. The
cruise control keeps the car at a steady speed that has been set by the
driver.
The flowchart shows what the outcome is if the car is going too fast or
too slow. The system is designed to add fuel, or take it away and so keep
the car's speed constant. The output (the car's new speed) is then fed back
into the system via the speed sensor.
Other examples of uses for system diagrams include:
aircraft control
central heating
automatic washing machines
booking systems for airlines
34
Study Point 5 – Complex Flowcharts self quiz
Attempt 1
1. Draw the symbol used at the start and end of a flow diagram
2. Draw the symbol used to connect two parts of a flow diagram together
4. Draw the symbol used for inputs to, or outputs from, the flow diagram
5. Draw the symbol used when there are two or more different paths to take
based on a choice
6. Draw the symbol used to call different flow diagrams from within the flow
diagram
35
7.
36
Attempt 2
1. Draw the symbol used at the start and end of a flow diagram
2. Draw the symbol used to connect two parts of a flow diagram together
4. Draw the symbol used for inputs to, or outputs from, the flow diagram
5. Draw the symbol used when there are two or more different paths to take
based on a choice
6. Draw the symbol used to call different flow diagrams from within the flow
diagram
37
38
Study Point 5 – Complex Flowcharts short answer
questions
39
Create a flowchart system to control the air conditioning in our new building. It
should turn the heating on when the temperature is below 18 degrees.
40
Study Point 6 – Embedded systems
PCs, smartphones and games consoles are typical, everyday computers but there
are many other types of computer systems.
Embedded computers
Embedded computers are used in car engines, spacecraft and MP3 players. They
are dedicated systems that are designed for a fixed purpose. This is different to
the type of system in PCs and smartphones, which use software for a range of
purposes.
Computer systems don’t just include desktop PCs and laptops. Some computer
systems are embedded into other electrical equipment (in fact, most computers
are embedded systems). The embedded system has a specific function to
perform whereas a general-purpose computer can perform a wide range of
functions.
41
Study Point 6 – Embedded systems self quiz
Attempt 1
42
Attempt 2
43
Study Point 6 – Embedded systems short answer questions
44
Wearable technology includes embedded systems. Find out about one type of
wearable technology and explain how it works and what inputs and outputs it
uses.
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
________________________________________________________________
45
Challenge Study – Task Outline
Sheldon has trouble making friends, but he is a brilliant scientist and his
computational thinking is outstanding.
Sheldon decided to create an algorithm to help him solve the problem of making
a friend.
His algorithm is on the next page (p18).
Task
Look at the Friendship algorithm on page 18
Watch the youtube clip (Google search ‘Big Bang Theory Friendship
Algorithm’)
________________________________________________________________
________________________________________________________________
________________________________________________________________
46
47
Challenge Study – Task Submission - Evaluation
48
Challenge Study - Explain your algorithm
49
Self quiz answers
Study point 1 Algorithms self quiz answers
50
Study Point 3 – Pseudocode self quiz answers
1.
2.
3.
51
4.
5.
6.
Study Point 6 –Embedded systems self quiz answers
1. PC, smartphones and games consoles
2. Systems that have a specific function to perform
3. Digital camera, microwave, television, washing machine, calculator,
thermostat, photocopier, traffic lights, radio alarm clock
4. A system that can perform a wider range of functions
5. A personal computer
52