150 likes | 347 Views
Starter – Brain warm ups with visual clues. VIAL BEAR . Variable. GREEN TI . Integer. PURE CODER . Procedure. Dingbats question. What’s the phrase?. A rise in temperature. A programming instruction. END. APP. To join things. Programs which are useful.
E N D
Starter – Brain warm ups with visual clues VIAL BEAR • Variable GREEN TI • Integer PURE CODER • Procedure • Dingbats question. • What’s the phrase? A rise in temperature
A programming instruction END APP To join things
Research - Use the internet to help you find the answers to these questions. www.mathsisfun.com/temperature-conversion.html What is 212 Fahrenheit in degrees Celsius? What is 37 Fahrenheit in degrees Celsius? What is 65 Celsius in degrees Fahrenheit? What is 33Celsius in degrees Fahrenheit?
Difficult Science Words Fahrenheit Celsi us
Program Planning the program – Procedure /Sub routine to do one conversion • Breaking a problem down is called DECOMPOSITION Convert Degrees Celsius to Fahrenheit Do calculation Add degrees Get input Round answer Print result OUTPUT INPUT PROCESS
Program Convert Degrees C to Fahrenheit Make a cake A subroutine or procedure lists instructions in sequence INPUT Get input Do calculation PROCESS Round answer Add degrees Print result OUTPUT
Convert Celsius to Fahrenheit Name your procedure Create a variable for the input • Set inPut Ask user for inputinput What value do you want to convert to Fahrenheit?
The conversion bit Set outPut ((inPUT x 9) / 5) +32)
Preparing for output round outPutto whole number and overwrite into outPut Print the outPut • TooutPutappendF for Fahrenheit
Add the execute command and test To stop people from cheating I’ve left an important set of instructions out of this sub routine. – Can you spot the missing commands?
Testing your procedure using known data. 100 °C = 212 °F • Using your program – • Convert 26° Celsius(a nice warm day) to Fahrenheit • Did you get 78 or 79 °F • Which is right and why?
Ok Great! Your procedure/subroutine works! Time to make the second procedure! Disable the EXECUTE command ! REPEAT THESE STEPS TO MAKE YOUR NEXT PROCEDURE CALL IT
Task 2 Convert 98.6° Fahrenheit(normal body temperature) to Celsius • How to temperature conversion basic • How to temperature conversion advanced • Learning links http://www.kingsmeadspecialisms.com/ICT/02_Programming/Blockly/Blockly.htm