AISubs v3.5
In 2020, programming education will be introduced in elementary school classes.
Nowadays, we don't need computers in our lives.
For children who dream of the future, it's important for them to know how computers work.
To do that, they need to learn programming.
Learning programming doesn't mean changing the world in the future!
So, in our program for next week, we'll challenge programming first!
We'll learn programming with games and music!
What's that?
It's a song!
Programming star, singing love song...
So, everyone in front of the TV, please prepare tablets and computers, and let's go on a programming journey while having fun with us!
Let's go! Programming star!
- Hello, everyone! - Hello!
I'm Kyoko Gunji, Programming star!
I'm going to make a programming star in the future!
Thank you!
And Ando-sensei is going to teach us programming!
- Thank you! - Thank you!
Ando-sensei has more than 100 teachers all over the country.
He is a professor of programming, which is popular now, and you can learn it online and in class.
Today, we're going to study with the people in front of the TV.
Shonan-no-kaze's young husband, Nira-shinji-kun.
Sashihara-rino-san's producer, Equal-Love.
Ohtani-emiri-chan and Noguchi-iori-chan.
The second participant, Saito-nagisa-chan!
- Thank you! - Thank you!
And this is the first participant, Ogi-hana!
I'm Ogi-hana of Natte Calmina.
I've been studying at home, so I'll do my best! Thank you!
Great!
- You've been studying hard! - Great!
- Did you learn it at school? - Yes, I learned it when I was in middle school.
- Wow! - Programming...
Yes, I was doing programming in an information class.
- Wow! - That's amazing!
- It's time now! - It's time now!
Before today's mission, let's review what we've learned so far!
Programming is creating an order book.
The algorithm is what makes the programming efficient.
What we're learning now is a programming software called "scratch".
Scratch is different from the source code used in conventional programming.
You can do programming just by connecting blocks.
It's easy to get scratch!
Search "scratch" on the Internet and select scratch's website.
If you click "make" everyone can start right away, so let's get ready!
And last time we learned how to move patterns.
To rotate this arrow, select "turn 15 degrees" from the "move" palette and click it.
If you do that, the arrow will rotate 15 degrees each.
If you change 15 degrees to 30 degrees, it will rotate 30 degrees each.
Let's try programming this.
Emily-chan, please teach us!
I want to rotate this one rotation, so I'll pinch the "repeat" button from the "control" palette.
I pinched it!
If you click it, it will rotate.
I want to make it bigger, so I'll pinch the "move" button from the "move" palette.
If you do that, it's a little bigger.
And I want to add some color, so...
To make it colorful, click the "costume" tab and prepare various colored arrows.
From "appearance" palette, select "next costume"
Then, it's colored
Beautiful
Wow
Teacher, is it perfect?
It's perfect
Yes, you did it well
This is the basic one, firework
Yes
It's wonderful
Wonderful
It's good
Then, let's listen to their review and actually draw patterns
Yes
I'll draw
Like this
What?
Like this
Then, repeat 25 times
Yes
Is it OK?
Yes
It's done
Wow, it's fast
It's fast
Yes
Nagisa-san, too
Yes, it's done
Is it done?
Yes
It's fast, isn't it?
Oh, Hana-chan
25 times
Yes, it's fast
Oh, it's done
Yes
Then, insert "next costume"
Then, click
Oh, it's done
It's good
It's fast
If you can review it, you can learn today's mission, "Conditional division"
"equal love" programming is being streamed uncut on Hulu
Don't miss their "nice error"
This program is provided by PROST of Programming Learning System
Let's start today's mission
Yes
Today's mission is "learn conditional division"
Conditional division
Yes
Have you ever heard of "conditional division"?
I've heard of it
I don't know
Conditional division
We have no choice but to follow the kanji
There is a condition and we divide it
We have been doing sequential processing
We have been moving characters and drawing fireworks using repetitions
This condition and we divide it is called the three kinds of human skills of programming, and the third one is this condition and we divide it.
The three kinds of human skills of programming are sequential processing, repetition, and condition and we divide it.
First of all, what I learned in April on the show was sequential processing.
Processing the programming from top to bottom in order. The point was to line up the blocks in the order you wanted to move.
And what I learned in May is repetition.
Repeating the programming over and over again.
You can process efficiently without lining up the same blocks.
And what we're going to learn this month is "conditional division".
Mr. Ando, could you please tell us about it?
We use it in our daily life as well. What do you do if it rains?
You put an umbrella over it.
That's right. That's "conditional division".
If it's sunny, you put an umbrella over it.
That's "conditional division".
So, what we've done is blocking this conditional division.
I see.
Basically, if it rains, you put an umbrella over it.
These are the blocks.
If you master these three, you'll have mastered all the basics of programming.
That's it!
That means...
That's fast!
If you master all the basics of programming by the end of this month, you'll have mastered all the basics of programming.
Wow!
What?
Is it true?
It's true!
However, this conditional division is a little more difficult than before.
It is.
Let's study hard!
In order to learn this conditional division, we'll study using this "sugoroku" this month.
You can't make this "sugoroku" right away, so we'll study it one step at a time.
This is the first lesson of the first lesson.
We'll use this map as a "sugoroku" and learn the conditional division.
Even events that occur when you make a dice or stop at a bus use conditional division.
You can download this "sugoroku" from the program's official homepage.
This "sugoroku" has a width of 36 steps.
36 steps.
"36 steps" means that the width of one square is 36 steps in length.
So, let's bring "move 10 steps" from "move palette" and change "10" to "36".
If you press "space" now...
Did you do it for the second time? Do you remember it?
Yes.
If you miss it, you have to press "miss".
36
Yes.
What did you do, Nagisa-san?
I pressed "miss".
Shinji-kun, you press "miss".
Shinji-kun, you press "space" and press "move 10 steps".
Yes.
What?
Is it really your first time participating in this program?
Yes, it is.
Wow, you're like a teacher.
Hana-san?
Hana-chan!
Wow!
I did it!
You did it!
Hana-chan!
Hana-chan, you're amazing!
If you can do it up to this point, it's your first study!
If you can't do it at all, remember it!
Let's use "If only" (if only)
If only...
Everyone, it's like "pop" but teacher, next please!
If you use "condition separation" you can think like this
When Shinji-kun touches the green one, it turns to the left. Isn't it a condition?
That's right!
It's all regular. When Shinji-kun touches the green one, it turns to the left.
Right now, Shinji-kun's body should be centered as much as possible.
So, when Shinji-kun touches the green one, it turns to the left.
Check
Click this and enlarge it a little.
Now, Shinji-kun's...
To choose a color, click this "dropper" (spot)
Click this and...
If you click Shinji-kun's order form here, it turns white.
Next, it's this one.
If you hold it like this and click "green"
Now, when white touches green...
When Shinji-kun's memo touches the green square and turns to the left...
Next, from "check"'s palette, choose "○○ color touches ○○ color"
Click "color part" and select "eyedropper" (spot)'s mark...
You can choose the color of the stage, so click "memo"
Similarly, you can choose "green square"
Once you've done this much, you can program it next.
First of all, click "conditional partitioning block"
"What if" block and "orange block" block.
control
From "control" block, click "if something happens"
There are several of them, so be careful.
"If something happens" is this one.
Then, click "condition"
Now you've done "conditional partitioning block"
Once you've touched "green" (green square), what you should do is...
turn left
turn left ninety degrees
In "movement"
turn left fifteen degrees and turn left ninety degrees
control
From "control" palette, click "if something happens"
Let's combine it with "check" block you've specified!
Once you've touched "green square"
turn left
From "movement" palette, click "turn fifteen degrees"
If something happens
Change "fifteen degrees" to "ninety degrees" (ninety degrees)
Then, click "space key"
Once you've touched "green square"
turn left
How is it?
Come! Come!
Oh, you've got it! You've got it!
You've got it! You've got it!
You've got it!
For the next study, let's learn "variable"
After this, let's use "variable" and make an original dice!
In Hulu, there is a popular game that has more than 100 million people registered in the world, "Minecraft"!
Learning the educational programming function of it, we are delivering original contents! Watch it!
Suddenly, Shinji-kun, what do we need for "sugoroku" (study)?
For "sugoroku", we need a dice.
That's correct!
Then, we will make the dice ourselves, but...
What we need for it is "variable"
variable
Again, there are new words. "conditional branch" and "variable" (variable)
Then, Shinji-san, please!
Ah, I got it! "variable" is as you can see, "variable" is "variable number"
"variable number" (variable)
In short, it is something that changes, but "variable" is like a bucket, isn't it?
For example, you can put various things in a bucket, can't you?
For example, you can put water, sand, or stones in it.
This is "something that changes" (variable)
So, what "variable" is...
It is like a container that receives various values.
"variable" is like a bucket that puts different numbers in a program.
"variable" is like an eye of a dice.
If you roll a dice, the numbers from 1 to 6 will change for each eye of the dice, won't they?
Teacher, please show us how you make the dice
Yes, I designed the dice
Let's have a look
1 is a dog
2 is a cat
3 is a snake
4 is a pig
5 is a giraffe
That's an ant
6 is a watermelon
Watermelon?
Animals are not animals
I thought I was good at it, but I felt the limit of animals with giraffes, and from there I made it a watermelon family
When you draw a dice, it's important to draw in order from top to bottom, from one to six
It's easy to guess the number of rows in the dice
And where is the number of rows in the dice?
It says "number of rows"
From bottom to second?
From bottom to second, it's this orange one
There are many similar ones, but this is the most common one
Here, we'll make a number of rows
Let's say it's the number of eyes in the dice
Eyes in the dice
We made eyes in the dice
Now we have a bucket called "eyes in the dice"
We'll put a number in here
When you push the space of the event, the dice will roll
In this variable, "eyes in the dice"
We'll put a number of rows from one to six
It's a six-sided number, so it's one to six
What kind of image is this?
In this bucket called "eyes in the dice", we put a number of rows from one to six
With this, the dice is complete
Wow, that's fast
And where will this number come out?
The variable is also in the bucket called "eyes in the dice"
If you check this, you'll see "eyes in the dice" here
If you push the space of the event, the number of rows will change
Five, three, two, six, one
To make a dice, let's choose "make a variable" from the variable bucket
Give it a new variable name and click "OK"
If you can do it, let's connect the event palette to when the space key is pressed and the variable palette to when you set the number of dice eyes to zero!
Since the number of dice eyes is random, let's change the number of dice eyes from 1 to 10 from the number of dice eyes in a row palette to 6!
If you press the space key, the number of dice eyes will be displayed randomly!
In addition to the bucket, you can give what you put in to others.
For example, if you ask your mother for water, you can ask for water and give it to others.
The role of the bucket is to put in a number of dice and give it to other characters.
The value of a variable can be passed on to other blocks.
For example, in the programming of the dice we saw earlier, let's connect "look" palette to "make a costume out of it" and combine it with the dice eyes from the variable palette!
If you do it...
Yes, if you press it...
Yes.
Wow!
Yes.
It's true!
It's cute!
It will be like this.
If you can do it up to this point, let's make an original dice for today's work!
After this, we will make an original dice!
What kind of dice will be made?
I love you.
"=LOVE" programming is being streamed uncut on Hulu!
Don't miss out on their nice errors!
From now on, it's work!
Everyone, let's make your own original dice using the variables!
Yes!
Feel free to add pictures and sounds and make your own dice!
Yes!
To draw a dice eye, select a cat's mark and select a pen!
Once you have a drawing screen, click "transform" on the bitmap and draw a picture you like!
Shinji-kun, by the way, girls are getting pretty good at it!
Girls have a sense of drawing!
Shinji-kun, you have a lot of them!
The one you drew with Gunji was really good!
I only draw pictures like that!
Once you've drawn a picture, record each sound in the eye of the dice!
Select a microphone from the speaker in the lower left corner!
If you click "record", you can record your own voice!
I'm Laby-chan!
I love you!
If you use the "control palette" and "repeat 10 times" blocks to program the dice,
the eye will change randomly and you'll get a dice eye for the 10th time!
What kind of dice did they make?
Emiri-san, let's take a look!
Here I go!
"Wang" "Nyang" "Kirin"
"Kirin" "Wangpyong" "Kirin"
"Kirin" "Kirin"
Your "Kirin" rate is high, isn't it?
That's right. I wrote "Kirin" against it.
Are you a teacher?
Yes, I am.
You are good at it.
Thank you very much.
You are good at it.
You are wonderful.
OK, let's move on to Iori.
OK.
Here we go.
Five, four, one, six, six, four, three, one, five, one.
OK, Nagisa-san.
Really?
Shall we start?
I'm embarrassed.
I'm sure it's you.
I love you.
I'm sure it's you.
I want you.
I'm sure it's you.
I want you.
I love you.
I'm sure it's you.
You are good at it.
Well, there are many of them.
I'd like to ask others, too.
Well, Hana-san.
Yes.
Let's see.
"Noimi" "pyonpyon" "pyonpyon"
"kirai" "kirai"
"Noimi" "suki" "kirai"
"pyonpyon" "kirai"
Wow!
Amazing!
The last one is Shinji-kun!
What was that?
What was it?
I don't know the number.
One.
I think so, too.
Yes.
Shinji-kun, please show me one more time.
Oh, it's true!
It's true!
It's Shinji!
Amazing!
It's him!
Great!
Today's review!
This time, we used variables to make a dice!
To make a dice, choose "make variables" from "variable palette".
Give it a new variable name and click "OK"!
If you can do it, let's connect the "space key pressed" from "event palette" and "zero dice eyes" from "variable palette"!
Since "dice eyes" are random, let's change "number of rows" from "variable palette" from "one" to "ten" to "six"!
If you can do it, let's connect "make variables" from "event palette" and "zero dice eyes" from "space key pressed"!
If you can do it, let's connect "number of rows" from "event palette" and "zero dice eyes" from "space key pressed"!
Next time, we'll use "message" to make an event! Look forward to it!
On Hulu, you can watch the original contents of the popular game "Minecraft", which has more than one million people registered in the world, and learn the programming function of its educational version!
This program was brought to you by PROSTA of the Programming Learning System.