Download Comments for each student

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Multidimensional empirical mode decomposition wikipedia , lookup

Immunity-aware programming wikipedia , lookup

Transcript
Data Logging and Computerised Control
You must (grade D or C)
In this section, you are going to be using LOGO to control a drawing turtle. Follow these
instructions and answer these questions to investigate what LOGO can do.
To get into LOGO, do the following:
1. Go to Start > All Programs > Curriculum Software > ICT > MSWLogo
2. A grey box may appear supporting Multiple Sclerosis (MS). Click ‘OK’.
3. You will see a screen which looks like this:
The screen is split into two halves. The top half is called the MSWLogo drawing
canvas or simply canvas and it is where you see the results of the turtle commands.
The bottom half is called the Commander window, and it is used to enter LOGO
turtle commands. This is where you will be focussing in on for this worksheet.
The LOGO turtle can be controlled using the following commands:
Instruction
REPEAT n [ ]
FORWARD n
LEFT θ
RIGHT θ
CLEARSCREEN
HOME
Meaning
Repeats the instructions in the square brackets n times
Moves the turtle n spaces forward
Turns the turtle left θ degrees
Turns the turtle right θ degrees
Deletes everything off the canvas
Puts the turtle back in the middle
Use the Commander window of MSWLogo to answer these questions:
1. Enter the commands underneath each question in COURIER NEW. Answer the questions
in the textboxes provided.
(a) What shape do the commands below produce?
FORWARD
FORWARD
FORWARD
FORWARD
100
100
100
100
RIGHT
RIGHT
RIGHT
RIGHT
`
90
90
90
90
(b) What command could you use so that you didn’t have to write out the same instructions
at question (a) four times?
Before doing question (c), type CLEARSCREEN into the Commander window.
(c) What shape does the command below produce?
RIGHT 30
REPEAT 3 [FORWARD 20 RIGHT 120]
Before doing question (d), type CLEARSCREEN into the Commander window.
(d) A set of instructions were used to create this shape.
Complete the instructions below using the textboxes provided, then enter them into the
Commander window.
FORWARD 25
RIGHT 90
25
RIGHT 90
FORWARD 50
90
FORWARD 100
Before doing question (e), type CLEARSCREEN into the Commander window.
(e) Another set of instructions were used to create this shape:
Complete the instructions then enter them into the Commander window.
FORWARD 50
RIGHT 90
120
RIGHT 90
FORWARD 50
90
120
2. A housing estate discharges its storm water into a nearby stream.
Stormwater
B
A
A research station monitors the conditions of the stream using sensors (A and B)
connected to a computer as shown.
(a) State two suitable sensors that could be used by the research station to monitor the
river. (Hint: Type in “sensor types GCSE ICT” into Google).
(b) Explain why the stream’s conditions are monitored using a computer and not manually.
You should (grade C or B)
1. The research station aforementioned in Q2 in the “you must” section wants to analyse
the data and display the results in a report.
Describe how they would do this.
In this question you must:
 Write an introductory paragraph stating ways which you could analyse the data and
display the results in a report, e.g. list things such as putting the data into a
spreadsheet, putting the data into a database and getting results from the database,
etc.
 For each point listed in the first paragraph, explain it in more detail, e.g. “By putting
the data into a spreadsheet, I am able to quickly find trends and make graphs …”
2. The temperature of the water in a fish tank is controlled using a computer connected
through an interface box to sensors and a heater.
Temperature sensor
Interface
box
Heater
In any system, analogue data is any data which is represented by anything other than a 0
or 1. For example, in this system, the temperature sensor would represent temperature by
increases or decreases in voltage, depending upon the heat in the tank.
Digital data is any data which is represented by either 0 or 1. For example, in this system,
the data on the computer is either there (1) or not there (0). Another example could be a
light switch – it is only on (1) or off (0), and the computer can be made to increase or
decrease the water temperature based upon whether the light is on or not.
Answer the following questions using this information:
(a) The analogue data collected from the temperature sensor is converted into digital data
for use by the computer.
Explain the difference between analogue and digital data with examples of their use. Hint:
Type in “analogue digital data difference” into Google.
(b) The temperature of the water in the fish tank must be kept between 18 OC and 24OC.
The computer is used to turn the heater on or off to manage the water temperature.
These are some of the instructions that can be used to control the heater.
Instruction
>
<
=
HEATER ON
HEATER OFF
IF…THEN
READ
END
START
Meaning
Greater than/more than/over
Less than/below
Equal to/same as
Turns the heater on
Turns the heater off
Checks a condition
Input data
Ends the sequence
Starts the sequence
Use the program instructions to complete this program for controlling the heater. Fill in the
blanks using the text boxes provided.
START
READ temperature
END
IF temperature
18 THEN
IF temperature
24 THEN