1 00:00:00,370 --> 00:00:06,290 Hi everyone, we are going to continue with the Scratch project. First we are going to open again 2 00:00:06,290 --> 00:00:12,050 Scratch. We are going to close these two things that we don't need as we did before and we are 3 00:00:12,050 --> 00:00:21,730 going to upload the project that we saved before. There it is and there we are going to have what we 4 00:00:21,730 --> 00:00:27,890 did previously. The two characters and the code for the red and the blue spot. Now we are going to do 5 00:00:27,890 --> 00:00:34,729 do the difficult part which is to program the code to make the matter in 6 00:00:34,729 --> 00:00:41,149 this case water change to liquid solid or gas depending on the temperature okay 7 00:00:41,149 --> 00:00:45,829 the first that the first thing that we are going to do as we did before is to 8 00:00:45,829 --> 00:00:57,289 start with when we click on the green flag forever and inside forever we put 9 00:00:57,289 --> 00:01:08,870 conditionals if and we are going to do first is to say to the red point that if 10 00:01:08,870 --> 00:01:13,609 we touch it it has to increase temperature and to the red to the blue 11 00:01:13,609 --> 00:01:21,250 point that if we touch it it has to decrease temperature so this is if 12 00:01:21,250 --> 00:01:33,150 touching color blue and to get exactly this color we have to do it like this if 13 00:01:33,150 --> 00:01:41,689 touching color blue it change 14 00:01:41,689 --> 00:01:52,489 variable that we have to create to minus one because we want to decrease 15 00:01:52,489 --> 00:01:58,489 temperature. First we are going to create a variable that is going to cool 16 00:01:58,489 --> 00:02:08,810 temperature only for this object so change my temperature by minus one and 17 00:02:08,810 --> 00:02:36,889 And then again, if touching color red, and to get exactly the same color, first we click on red. And we look for it. If touching color red, again, change my variable, which is temperature, to plus one. 18 00:02:36,889 --> 00:02:43,770 okay that's for the colors to increase and decrease temperature then what we want to do 19 00:02:43,770 --> 00:02:52,250 is to say to the program that if the temperature is lower than zero it has to be ice solid if 20 00:02:52,250 --> 00:03:00,250 temperature is more than 100 degrees it has to be gas in this case the cloud and if the temperature 21 00:03:00,250 --> 00:03:10,810 is between 0 and 100 it has to be liquid, a drop of water. So if we are going to say 22 00:03:10,810 --> 00:03:30,990 again if temperature is less than zero and then we are going to say if temperature is 23 00:03:30,990 --> 00:03:40,389 less than zero, then it changes or switches to costume solid, the ice cubes. 24 00:03:40,389 --> 00:03:59,800 And again, if, we have to put it there, if, we need another operator, if temperature is 25 00:03:59,800 --> 00:04:12,060 more than 100 I want to switch my costume to gas the cloud and finally we 26 00:04:12,060 --> 00:04:24,839 are going to say that if and we need two operators here so if first temperature 27 00:04:24,839 --> 00:04:41,180 is more than zero and less than 100 so this is more than zero and less than 100 28 00:04:41,180 --> 00:04:59,680 the temperature in both gaps it has to change to costume water okay drop of water so we are going 29 00:04:59,680 --> 00:05:06,800 to see that if it touches you see it increases temperature and it changes to well if we make 30 00:05:06,800 --> 00:05:13,519 it bigger we can see it better now it's color blue and if we touch the cloud it 31 00:05:13,519 --> 00:05:19,100 should decrease temperature and it happens because it's less than 100 it 32 00:05:19,100 --> 00:05:23,079 changes to liquid and if we continue touching the drop of water when it's 33 00:05:23,079 --> 00:05:29,540 less than zero it will be ice that's it and if we change to red the same the 34 00:05:29,540 --> 00:05:36,579 temperature increases and it changes the different states of water and that's all 35 00:05:36,579 --> 00:05:46,779 we can save again the project save to your computer and so we have it and you 36 00:05:46,779 --> 00:05:55,980 can share it with your teacher as he or she likes bye bye I hope you like it