Flowcharts - markhunter.org

Download Report

Transcript Flowcharts - markhunter.org

G063 - Flowcharts
Learning Objectives:
• describe, interpret and create flowcharts,
• explain suitability for use in a given application
Flowcharts
• are diagrams showing the breakdown of a system into
simple steps
– an algorithm
• used during analysis
– to show the processes in an existing system (current system)
• used during design
– to plan the order of processes for the proposed new system
• to show how the new system should work
• flowcharts can then be followed during development
Flowchart Symbols
Ordering food:
Flowchart for having a bath:
1.
2.
3.
4.
5.
6.
7.
Fill the bath with water
Get undressed.
Get into bath.
Wash.
Get out of bath.
Empty the bath water.
Get dressed.
Flowchart for having a bath:
1.
2.
3.
4.
5.
6.
7.
Fill the bath with water
Get undressed.
Get into bath.
Wash.
Get out of bath.
Empty the bath water.
Get dressed.
Extended flowchart for having a bath:
• you really would need to check if there is enough water
and whether it is at the right temperature while running
the bath.
1. Turn on the hot and cold taps.
2. Is it too hot or cold? If it is, go to step 3, otherwise go to
step 4.
3. Adjust the hot and cold taps and go back to step 2.
4. Wait for 2 minutes.
5. Is the bath full? If it is, go to step 7, otherwise go to step 6.
6. Go back to step 4.
7. Turn off the hot and cold taps.
Extended flowchart for having a bath:
1. Turn on the hot and cold taps.
2. Is it too hot or cold? If it is, go to
step 3, otherwise go to step 4.
3. Adjust the hot and cold taps and
go back to step 2.
4. Wait for 2 minutes.
5. Is the bath full? If it is, go to step
7, otherwise go to step 6.
6. Go back to step 4.
7. Turn off the hot and cold taps.
Extended flowchart for having a bath:
1. Turn on the hot and cold taps.
2. Is it too hot or cold? If it is, go to
step 3, otherwise go to step 4.
3. Adjust the hot and cold taps and
go back to step 2.
4. Wait for 2 minutes.
5. Is the bath full? If it is, go to step
7, otherwise go to step 6.
6. Go back to step 4.
7. Turn off the hot and cold taps.
Cruise control:
Create a flowchart for the following scenario:
1. A customer books a collection of a parcel from a delivery firm
2. If the booking is made before 3pm, the collection is made the same day,
otherwise it is made the next day
3. If the booking is made between 3pm Friday and 3pm Monday then it is
collected on the Monday
4. When the parcel is collected, the customer is given a receipt
5. The parcel is then taken to the local depot
6. If the parcel is to go to the local area, it is left at the depot overnight
7. If the parcel is for another area of the country, it is sent to a different depot
8. The parcel is then put onto a delivery van
9. The driver attempts to deliver the parcel
10. If the recipient is at home, the parcel is delivered
11. If the recipient is not at home, the parcel is returned to the depot so it can
be delivered the next day
Greenhouse control:
• click on the link below and draw a flowchart
for the control process
• www.bbc.co.uk/schools/gcsebitesize/ict/me
asurecontrol/0computercontrolrev4.shtml