AISubs v3.5
In 2020, programming education will be introduced in elementary school classes!
Computers are indispensable for our lives now!
It is important for children who dream of the future to know how computers work!
To do that, we need to learn programming!
Learning programming doesn't mean changing the world in the future!
That's why we're taking a step forward in programming for next year's graduation!
We'll learn programming with fun using games and music!
What is it?
Potatoes!
That's why everyone in front of the TV should prepare tablets and computers and go on a programming journey while having fun with us!
Let's go! Programming Star!
Programming Star aims to study programming with young people like Shinji Nira of "Shounan no Kaze" and people like "equal love" and "not equal me" while having fun!
This time, we'll review what we've learned so far!
First of all, today's study! Learn programming!
In the first episode, we learned what programming is.
"Programming" in one word is "command book".
Command book
Yes, it's "command book".
Then, let's use this "programming" that you all know well,
"the first servant",
as an example.
"Programming" is "command book".
The servants that everyone asked their mothers were "programming".
Then, students!
Let's tell your mother your daily life as if you became a mother!
Shinji was asked to buy pork for curry,
milk for milk shop,
and potatoes for vegetable shop.
From now on, everyone will show you the way as if you became a mother.
There are scary dogs in the middle of the road,
so please show them the way without getting lost.
Mirei will challenge this!
Shinji!
Yes!
First of all,
you go out of the house.
You go out of the house.
You go out of the house first.
Then,
you go to the left side.
You go to the left side.
Yes.
Then,
at the first corner,
Go to the right.
Yes. Then,
Go straight, straight, straight.
You can see the meat shop with red roof.
Yes.
Then,
Buy beef.
Should I say "Give me beef"?
Yes. Give your wallet and money.
Say "Give me beef".
Is it okay if it's not a pig?
Dad said it's a pig.
When I was talking with my mom and dad, they said it's a pig.
It's expensive.
It's beef.
It's wrong.
It's beef.
It's wrong.
Buy pork.
Yes.
Then, when you go out of the meat shop,
Yes.
When you go out of the meat shop,
Yes.
Go to the left.
Turn.
Yes.
Turn.
Yes.
Then, turn to the left again.
Turn to the left again.
Yes. At the first corner.
At the first corner.
Yes.
Then, you can see a milk shop.
Yes.
Then, say "Give me milk".
Yes.
Say it.
Yes.
After you buy milk,
Yes.
Next, you go to buy important potatoes.
Yes.
To the right.
You can do it, mama!
You go to the right and go straight ahead.
Yes.
When you get there, you can see a green house with blue roofs.
Yes.
You go there and buy potatoes.
Yes.
When you go down, you see a scary dog.
Yes, it's always scary.
So you go and beat it up.
Beat it up?
That might be impossible for you, mama.
Beat it up.
Yes, beat it up.
You can do it, Shin-chan!
I can do it.
You run away.
You run away and go home.
Yes, that's good!
Yes.
And you go straight ahead.
You can see your house.
At the end, you kick out the dog.
That's also a very good idea.
The most important thing in programming is efficiency.
Yes, efficiency.
It's important to emphasize efficiency.
By the way, have you ever heard of "algorithm"?
Algorithm?
I've heard of it, but I don't know what it is.
Actually, it's a scale that measures the efficiency of programming.
We call it "algorithm".
Algorithm.
Let me explain what it is.
When you play a game, when you press a button, you immediately turn it on, right?
This is because efficient programming is being done.
But it's a problem if you press a button and wait a minute for it to turn on, right?
This is because if you give an extra order, the efficiency gets worse.
Algorithm is doing programming efficiently and with the shortest processing possible.
The next study is to know algorithms!
This is a game where you guess how old Mr. Ando is!
After this, you get a new answer based on your age!
This program is brought to you by PROSTA, a programming learning system.
How old is Mr. Ando?
Let's ask a few questions and find out the answer!
Mr. Ando can only answer "yes" or "no" to those questions.
Students other than the answerers must wear headphones and try not to hear the questions.
The person with the least number of questions wins this game!
What can we do to reduce the number of questions? Let's think about it!
First of all, Shinji!
First of all, I was born in the 1970s...
"no"!
First of all, you made a mistake!
I don't know anymore!
Oh, no!
Shinji, you only have two questions left!
Yes!
OK!
Were you a Showa student in middle school?
"yes"!
Were you not a Showa student in high school?
"no"!
Huh? So you were a Showa student...
Can I say you were a Showa student?
Yes, you can!
OK, I'll say you were a Showa student!
Were you a Showa student in college?
I can't answer this because it's "yes".
Oh, it's a subtle thing.
OK, I'll calculate it now.
In other words...
In other words!
You're 52 years old.
No!
You're 51 years old.
Yes!
Six times! Six times!
It was six times!
As you can see from Shinji-kun's question to the teacher,
you were able to guess your teacher's age six times!
Next up is Emily-chan's challenge!
Are you...
30 years old?
No!
Are you...
older than 45 years old?
Yes!
I'll guess it!
Oh, that's fast!
48!
Teacher, you're fast!
Teacher!
This is difficult!
You just asked two questions, right?
No, it's three.
Teacher...
What do you like?
"Yes" or "no"?
That's right! "Yes" or "no"?
You can only answer "yes" or "no", teacher!
Emily-chan heard something weird in the middle of it!
Emily-chan was able to guess her age eight times!
Next up is Iori-chan's challenge!
Age...
Time goes by so fast, I feel like it's going to be fast.
I want to bite an animal, but I get bitten by my impulse.
Iori-chan asked a question that was close to the teacher's private life.
In the end, she asked 15 questions in total.
Next up is Nagisa-chan!
Is she over 50 years old?
Yes!
Is she over 60 years old?
No!
Is she over 55 years old?
No!
Is she over 54 years old?
No!
Is she over 53 years old?
No!
Is she over 52 years old?
No!
Is she over 51 years old?
That's correct!
Oh, she answered 7 times until now!
- You asked him seven times, right? - Yes, seven times.
Here is Nagisa's question.
She asked him without hesitation, but it didn't reach Shinji.
And finally, Mirei will challenge.
Can I ask you a question?
Yes.
Is Ando sensei over 70 years old?
Sensei, don't hurt me!
Maybe he won't be here tomorrow.
Here is what Mirei asked.
She hurt Ando sensei before, but she got it right seven times.
The fewest questions were from Shinji-kun, who relied on his intuition,
but who was asking efficient questions?
Sensei, how was everyone's guidance?
Nagisa-san's question was surprisingly accurate, or almost accurate.
I'm happy.
It's good to ask a question that eliminates either of the two.
This is called "computerized double search".
A "computerized double search" is, for example,
predicting sensei's age from 41 years old to 60 years old.
First, if you ask "is he older than 50 years old?" in the middle,
the answer is "yes", and the age is between 51 and 60 years old.
And if you ask "is he older than 55 years old?" in the middle,
the answer is "no", and the age is between 51 and 55 years old.
If you narrow it in half like this, you can guide it.
After this, we will review how to use "scratch".
In the second broadcast, we used a computer and studied about "scratch".
"Scratch" is different from the "source code" used in conventional programming.
You can program just by connecting blocks.
It is easy to get "scratch".
Search "scratch" on the Internet and go to "scratch"'s website.
And if you click "screw", you can start immediately.
When you are ready, let's move "scratch"'s cat.
The first study is to move 10 cats.
First of all, we will move "space" from the event palette to the code area.
Let's select "move 10" from the "move" palette and connect it.
When you are done programming, let's press "space" key.
Oh, it moved!
One cat moved!
"10" is a dot, and "ten" is "ten" moving.
Oh, I see!
"10" is a dot, and "ten" is "ten" moving.
So, instead of moving "space"'s feet, "scratch"'s cat is moving "space"'s feet.
Like this.
I see!
"10" is not "walk 10 steps", but "move 10 dots on the screen".
In addition, he studied how to return the cat back to its original position.
Let's make this.
When the shoulder is pressed 90 degrees, if you rotate the "x" coordinate, "y" coordinate and rotation direction freely, the cat will go home for the time being.
Then I will explain the current programming.
First of all, let's choose when the shoulder is pressed from the yellow event block.
Next, from the blue event block, if you turn 90 degrees,
choose "x" coordinate "one", "y" coordinate "one", and change the number of "one" to "zero"!
Finally, choose "only rotate left and right", and freely rotate only left and right!
Did you understand, everyone?
By the way, where is the "flag" ? It is here.
If you click the "flag", it will come to the center.
It doesn't come back.
Why doesn't Shinji's cat come back to the center?
This is where two "flags" overlap.
This is a great mistake.
A great mistake!
I wanted to make it look like a block, so I put these "x" and "y" coordinates together.
I thought it would stick vertically and horizontally as well.
Yes, that's right.
It doesn't stick.
It doesn't stick?
This is it.
Oh, that's where it was.
Programming is about processing from top to bottom in order,
but you don't process it horizontally, do you?
You don't process it horizontally, do you?
Yes, you don't.
This is it.
Now, press the "flag" button.
"Flag"...
It's back!
That's great!
There was a new discovery from the mistake!
That's right!
New discoveries are made from mistakes,
so don't be afraid of making mistakes.
I was worried that I might get kicked out.
I was worried that I might not be here for the third time.
You're the best student here.
Don't make mistakes!
When you make a mistake, you get angry and you don't know what to do,
but in the world of programming, you make more and more mistakes.
Okay, let's praise him for his mistake!
Yes, let's praise him!
Nice mistake!
Nice!
That's right.
This is the programming that Shinji made a mistake in.
The block connects vertically, but it doesn't connect horizontally.
Everyone, don't be afraid of making mistakes and try various programming!
From now on, you won't see it! Shinji-kun's more "nice error" please have a look!
Well, the cat is going this way now, but in order for it to go to the opposite side, you have to turn the cat this way first, right?
You have to turn it to the opposite side, and then you have to turn it 90 degrees here.
Turn it 90 degrees.
What color palette is it?
90 degrees. It's blue, yes.
Blue palette.
Turn it 90 degrees.
90 degrees.
Turn it 90 degrees.
In this case, if you click here, you can turn it this way.
I see.
You can choose how many times you want to turn it, right?
That's right. This is the direction you want to turn it.
This is the right direction, and this is the left direction.
Furthermore, if you turn it downwards, it will turn downwards like this.
Wow!
Turn it 90 degrees.
Now, let's see if she was able to turn it the opposite way.
Now, Mr. Tarazaki.
Yes.
When you press the space key, it will move to the opposite side.
OK.
Good job!
Next up is Shinji.
Mr. Tarazaki.
Yes.
I think Shinji's cat is weird.
Nice era!
Shinji's cat is...
Nice era!
First of all, it's here, but now it's 90 degrees.
This is the first one, so...
What you are doing now is not here.
What you are doing now is not the flag, but the space key.
You put it here, so you click it here.
Here is the program Shinji made a mistake in.
As the teacher said, when the flag is pushed, it connects the blocks.
Let's figure out which blocks are being pushed and assemble them.
After this, make original characters with scratches!
The next study is "Make original characters"!
In the third study, we used scratches to make original characters.
To draw your own character, first click the "cat" mark in the sprite list.
A "brush" mark will appear, so let's click it!
Then it will become a drawing screen, so click "convert to bitmap" and choose "convert to vector"!
"Convert to bitmap" and "convert to vector"!
First of all, let me explain.
First of all, you decide the color of the first line here.
There is a habit of choosing colors here.
For example, since it is black at first, slide it like this with brightness.
If you bring it to the far left, you can draw it in black like this.
First, select it and draw it while pushing it.
Like this.
Next is "fill in".
For example, select a pen and draw it.
If this line is closed, select this bucket and tap it to fill it in.
To draw a picture, first click "fill in"!
Let's choose a color and brightness!
If you move the mouse while pressing the click button, you can draw a picture!
If you want to fill in the picture you drew, choose a bucket mark and click where you want to fill it in.
You can fill it in like this!
Now, let's start drawing!
Please draw a character you like.
What should I do?
A simple one.
You can actually draw it on your computer!
That's right!
It's really fun!
Shinji-kun, you're good at drawing!
I'm really good at it!
I'm done!
I'm done, too!
You're fast!
I even put on a cushion!
Wow!
What kind of characters have been created?
Let's take a look at everyone's drawings!
First of all, Takamatsu-san!
Yes!
Wow! She's cute!
She's cute!
I'm a rabbit, and I'm really bad at drawing, but I think I did a good job!
She's cute!
She's good!
What kind of movement do you do?
I'll show you!
Oh, I see!
What? You drew a fly!
Oh, I see!
You drew a fly!
It's like that!
I saw Takamatsu-san's drawing!
As expected of Gohan-kun!
Let's take a look at Ohtani-san's drawing!
Yes!
It's quite novel!
Yes!
Well, Ando-sensei, who do you think it is?
Is it some kind of Teletubbies or something like that?
No, it's not!
This is...
Actually, Ando-sensei drew it!
Ah, you did it?
Yes!
Eh, you didn't notice?
Do I look like this?
Are you wearing tights underneath?
If you move it like this, what will it look like?
If you move it like this...
It's like this!
It's cute!
It's very soft!
You can print it out and use it as your own character!
That's nice!
It's cute!
Thank you!
You're taking in the characteristics of the form!
That's right!
Let's take a look at Shinji-kun's drawing!
This is...
I also drew Ando-sensei's drawing...
It's very popular!
Thank you!
It's different!
It's like Goh-ho or something like that!
It's like a real one!
That's amazing!
If I could do it a little better, I would have drawn it better!
That's amazing!
What kind of movement does it have?
Nice Error!
Wow!
That's amazing!
Nice Error!
That's amazing!
Even his eyes are wide open!
Nice Error!
Thank you!
Here are the characters drawn by the five of you!
Were you able to draw them well?
In addition, we used everyone's original characters in the broadcast!
In order to move an original character,
from the "Appearance" palette in the "Move Zip" programming,
you can connect the blocks of the next costume.
If you do so, it looks like a cat is running.
With this programming, I tried to move an original character.
Let's see Ando-sensei of Odari-san.
Ando-sensei, how is it?
Oh, cute!
Earlier, you were a little too fast.
Was I too fast?
Could you take first place for me?
Yes, I got it.
Is this okay?
I should have gone first.
You look like an old man.
That's all for this review.
Next time, we will use Scratch to try new programming.
Please look forward to it!
Shinjuku has an ego!
This program was provided by Frosta of Programming Learning System.