In the lesson, we will do the digital footprint test of our students with scratch. For this, we add a sprite to our screen that will give instructions to the test, and 2 buttons for yes and no answers. Since the answers to the questions we ask will be yes and no, we create variables that will keep the number of yes and no. At the end of the test, we multiply the sum of the yes numbers by 2 and the sum of the no numbers by 1. We assign the result to the yes score and no score variable. We add the values in these variables and assign them to the total score variable. The numerical values of the result have a corresponding value. I will give them at the end of the article. Let's move on to the coding part;
For this, we take
the code if it is from the control menu, take the code that is less than the
operators menu, and write the total score on one side and 9 on the other. Thus,
if our total score is less than 9, we give the message with the code we get
from the view menu and the text we will write in it.
Our other possibility is if the total score
is greater than 9 and less than 15, that is, if the total score is between
10-14; for this, we take the code, if any, from the control menu and take the
command and this time from the operators menu. And on one side of the command
we get from the operator menu again, we take the code 9 on one side and the
total score on the other side, and the code on the other side of the command is
less than we write 15 on one side and write the total score on the other side.
If the total score meets these conditions, we broadcast our message on the
screen with the code we get from the view menu. If our last probability is
greater than 15 and less than 19, the same codes we made with the above
condition and the "and" command, only the numbers are 15 instead of
9, we write 19 instead of the number 15 on the right, and if we have a total
score that meets this condition, we print our message on the screen.
Now let's look at
the codes to be written inside the buttons;
1- When the green
flag is clicked, I hide the buttons with the hide command. The reason is that
the user does not click on the yes or no buttons until the questions come.
2- When the green
flag is clicked, the instructions about the test will come first. After these
instructions are finished, we make the start questions news visible by
oscillating the button to appear.
3- When the
question has been asked and disappears from the screen, the Question Done news
is released and when this news comes, the screen disappears with the hide
button and 2 seconds later, it is displayed with the show command. Thus, until
the next question comes, the buttons disappear from the screen, preventing the
user from pressing the button again.
4-The yes button
you see on the screen right now; When this dummy is clicked (when this button
is clicked), we increase the Yes number variable that we created at the
beginning of the program by one, and we release a message to hide the No
button. The purpose of doing this is that when the user clicks the yes button,
he does not click the no button, and the other button is hidden.
5- When the no
button is clicked, the yes button hide news is released. When this news comes,
the yes button is hidden.
6- When the last
question screen disappears, all buttons are hidden. Thus, we prevent the user
from pressing the yes or no button when the questions are finished.
The same codes in
the Yes button are also in the No button
To download the source code of the program CLICK HERE
To see the running version of the program CLICK HERE
POINT COMMENTS
if 9;
Even though your footprints are not very dense in the digital environment, they do exist. Review your answers. Some of the things you share on the Internet also pose risks to your security. Even though the scarcity of traces carries little risk, you should still be very careful when sharing your private information.
If it is between 10-14;
Your digital footprint is pretty intense. You should review your posts now and for the next
You should be much more sensitive about protecting yourself online. Look again at your answers. What do you think are the behaviors that increase the digital footprint on the Internet? What do you think you should do?
If it is between 15-18;
The digital environment, the Internet, is full of your footprints! What do you share on the Internet? Now think about the answer to this question and evaluate your situation. It's not too late yet, but you have to make some decisions for the future and implement them. From now on, you should act safely from the moment you enter the Internet, and stay away from behaviors that will harm your own dignity. Remember, your digital footprints are not deleted. Make a list for yourself and write down the 'rules you shouldn't do while online' on that list. Hang this list where you can see it while you're at your computer and take control of your digital footprint.
For All Scratch Examples CLICK HERE
For Mblock With Arduino Examples CLICK HERE
Comments
Post a Comment