AISubs
In 2020, programming education will be introduced in elementary school classes.
Computers are necessary in our lives now.
It is important for children to know the mechanism of the computer for their future.
To do that, we need to learn programming.
Learning programming is not a dream to change the world in the future.
So, in the program, we will challenge programming for next year's final exam.
We will learn programming happily using games and music.
What?
Takayama!
Programming star!
So, everyone in front of the TV should prepare tablets and computers.
Let's go on a programming trip while having fun with us!
Let's go! Programming star!
Programming star!
At Mezase Programming Star, we learn about programming with Shinji Nira, the youngest son of Shonan no Kaze,
and everyone at Equal Love and Not Equal Me.
This time, we will review what we have learned so far.
First, let's learn about today's study, programming!
In the first episode, we learned what programming is.
Programming is, in a word, an order book.
An order book?
Yes, it's an order book.
Then, let's look at the example of the first use of programming that everyone is familiar with.
Programming is an order book.
The use that everyone was asked by their mother was programming.
Then, students, let's teach them the order of the day pretending to be a mother.
Shinji was asked to buy pork for curry at a butcher's shop, milk at a milk shop, and potatoes at a vegetable shop.
From now on, everyone will be guided by Shinji pretending to be a mother.
There are also scary dogs on the way, so please guide them so that they don't get lost.
Mirei-chan will challenge this.
Shin-chan, first of all, go out of the house.
Go out of the house.
Then, go to the left.
Go to the left.
Then, go to the right at the first corner.
Go to the right.
Then, go straight, straight, straight.
When you go straight, you can see a butcher shop with a red roof.
Then, buy beef.
You buy beef.
You can say, please give me beef.
Put out your wallet, give me money, and say, please give me beef.
It doesn't have to be a pig.
My dad said it was a pig.
When my mom and dad were talking, they said it was a pig.
It's beef.
I made a mistake.
Buy pork.
Then, go out of the butcher shop.
Go out of the butcher shop.
Go to the left.
Then, go to the left again.
Go to the left again.
At the first corner.
Then, you can see a milk shop.
Then, you can say, please give me milk.
When you buy milk,
you can say, please give me milk.
To the right.
You can do it, Mama.
Go straight to the right.
When you get to the moon, you'll see a green house.
Buy potatoes there.
If you go down, you'll see a scary dog.
It's always scary.
So I'm going to beat it.
Beat it?
That's impossible, Mama.
Beat it.
Yes, beat it.
You can do it, Shin-chan.
I can.
Run away.
I'll run away.
I'll run away and go home.
That's good.
And if you go straight, you'll see a house.
It's like kicking out a dog at the end.
That's a very good idea.
The most important thing in programming is efficiency.
Efficiency.
It's important to focus on efficiency.
By the way, have you ever heard of an algorithm?
Algorithm.
I've heard of it, but I don't know what it is.
In fact, it's an algorithm that measures the efficiency of programming.
What does that mean?
When you play a game, you press a button and it turns on right away, right?
This is because efficient programming is being done.
But it's a problem if you press a button and wait a minute before it turns on.
This is because extra orders make it less efficient.
Algorithm is the most efficient and shortest processing of programming.
The next study is to know the algorithm.
This is a game to guess how old Mr. Ando is.
After this, a new answer will be added based on the age.
This program is provided by PLOSTA, a programming learning system.
How old is Mr. Ando?
Let's ask some questions and find out the answer.
Mr. Ando can only answer yes or no to those questions.
Students other than the answerer have to wear headphones so that they can't hear the questions.
The person with the least number of questions wins this game.
Let's think about how to reduce the number of questions.
First, Shinji.
I was born in the 1970s.
No.
I don't know at all.
I'm in trouble.
Shinji, you still have two questions left.
I was in the Showa era when I was in junior high school.
Yes.
I wasn't in the Showa era when I was in high school.
No.
I was in the Showa era.
Can I attack the Showa era?
Yes, you can.
I was in the Showa era when I was in college.
I can't answer this because it's a little yes.
Oh, it's a subtle place.
I see. I'll calculate it now.
Zubari.
52 years old.
No.
51 years old.
Yes.
Six times.
Shinji asked the teacher. As you can see, he was able to guess the teacher's age in six times.
Next, Emily will challenge.
Are you in your 30s?
No.
Are you older than 45?
Yes.
I'll guess.
Oh, it's early.
48.
The teacher is early.
Teacher.
It's very difficult.
You just asked three questions.
What do you like?
Yes or no.
You can only answer yes or no.
Emily heard something strange on the way.
Shinji was able to guess the teacher's age in eight times.
Next, Iori will challenge.
Age.
I started to think that time flies so fast.
I get bitten by the urge to bite an animal.
Iori-chan asked the teacher a private question.
In the end, she asked 15 questions in total.
Next is Nagisa-chan.
Are you over 50?
No.
Are you over 60?
No
Are you over 55?
No
Are you over 54?
No
Are you over 53?
No
Are you over 52?
No
51?
That was correct.
Answer
Yes!
So, she did questions 7 times even now.
Yes, she did.
Yes, I have.
You've asked him 7 times, haven't you?
Yes.
Here is Nagisa's question.
She asked him without hesitation, but it didn't reach Shinji.
And the last one is Mirei's challenge.
I just need to ask a question, right?
Yes.
Is Mr. Ando over 70 years old?
No, no.
Mr. Ando, please don't hurt him.
He may not be here tomorrow.
Here is Mirei's question.
She hurt Mr. Ando, but she answered 7 times.
Shinji, who relied on intuition, was the one who asked the least questions, but who was the one who asked the most efficient questions?
How was your guidance, Mr. Ando?
Nagisa's question was surprisingly correct.
I'm glad to hear that.
It's good to ask a question that eliminates one of the two choices.
This is called half-search in computer.
What is half-search?
For example, let's assume that the teacher's age ranges from 41 to 60 years old.
First, if you ask,
Are you older than 50 years old?
The answer is yes,
and the age ranges from 51 to 60 years old.
And if you ask,
Are you older than 55 years old?
The answer is no,
and the age ranges from 51 to 55 years old.
If you narrow it down by half like this, you can guide it.
After this, we will review how to use Scratch.
In the second broadcast, we used a computer to study Scratch.
Scratch is different from the source code used in conventional programming.
You can program just by connecting blocks.
It's easy to get Scratch.
Search for Scratch on the Internet and go to Scratch's website.
And if you click on this School, everyone can start right away.
When you're ready, let's move Scratch's cat.
The first study is to move 10 cats.
First, I'm going to take the space key from the event palette to the code area.
Let's choose 10 to move from the movement palette and connect them.
Let's press the space key when we're done programming.
It moved!
One step!
10 steps is 10 dots, and 10 dots are moving.
Oh, I see.
I don't know how to translate this, but 10 steps means 10 dots are moving.
So, instead of the feet moving, the cat is moving forward.
That's right. The cat is moving forward like this.
What Mr. Ando just explained about 10 dots is not walking 10 steps, but moving 10 dots on the screen.
He also studied how to put the cat back in its original position.
Let's make this.
When the flag is pressed, turn it 90 degrees and rotate it in the x-axis and y-axis freely.
Let me explain the current programming.
First, let's choose when the flag is pressed from the yellow event block.
Next, when the flag is pressed from the blue event block to 90 degrees,
let's choose when the x coordinate is 1 and when the y coordinate is 1,
let's change the value of 1 to 0.
Finally, choose the method to rotate only to the left and right,
and change only the left and right to rotate freely.
Did you all understand?
By the way, where is the flag?
It's here.
Flag.
Oh, it's the same.
If you click on the flag,
It starts.
It comes to the center.
Oh, it moved.
It doesn't come back.
Why doesn't Shinji's cat come back to the center?
There are two flags overlapped here.
This is a great mistake.
It's a great mistake.
This is a great mistake.
I was going to make a block like this,
and I tried to attach two x-coordinates and y-coordinates.
I thought it would stick vertically, so I thought it would stick horizontally.
Yes, that's right.
It doesn't stick.
This is it.
Oh, it was there.
Programming means processing from top to bottom in order.
It doesn't process horizontally.
This is zero.
This is OK.
Please press the flag.
Flag.
Oh, it came back.
It came back.
Great.
There was a new discovery from the error.
It's a new discovery from this mistake,
so don't be afraid of mistakes.
I was worried that I would be dropped.
I was worried that I wouldn't be there from the third time.
You are the best student.
Don't make a mistake.
If you make a mistake, you will get angry.
It's a world where there is no knowledge,
but in the world of programming, you will make more and more mistakes.
Let's praise the mistake.
That's right.
It's a nice mistake.
It's a nice error.
That's right.
Here is the programming that Shinji made a mistake.
The block is connected vertically, but it is not connected horizontally.
Let's try various programming without fear of failure.
From now on, please watch Shinji's further Nice Error, which has not been released yet.
The cat is going this way now, but in order to go to the other side, you have to turn the cat this way first, right?
You have to turn it the other way.
So, turn 90 degrees here.
Turn 90 degrees.
What color is the palette?
It's blue.
Blue palette.
Turn 90 degrees.
90 degrees.
In this case, if you click here, you can choose the direction to turn.
I see.
You can choose how many times to turn.
That's right.
This is the direction to turn.
This is the right direction.
This is the left direction.
It came out.
Furthermore, if you turn this down, it will turn down.
Wow.
You can turn 90 degrees.
Then, let's take a look at Haya's scratch to see if you can go the other way.
Mr. Tarizaki.
Yes.
If you press the space key, it will move to the other side.
OK.
Yes.
Well done.
Next is Shinji.
Sensei.
Yes.
Shinji's cat is going in a strange direction.
I also made a Nice Error.
Nice Error.
First of all, this is 90 degrees.
This is the first one.
What I'm doing now is not here.
What I'm doing now is to put this on the space key instead of the flag.
Click here.
This is the program Shinji made a mistake.
As the teacher said, when the flag is pressed, the blocks are connected.
Let's figure out which blocks you are giving instructions to.
After this, make an original character using Scratch.
The next study is to make an original character.
In the third broadcast, I made an original character using Scratch.
To draw your own character, click the cat mark on the sprite list.
A brush mark will appear, so click it.
Then it will be a screen to draw a picture, so click the conversion to bitmap.
Click the conversion to bitmap and choose the conversion to vector.
I'll explain it right away.
First of all, the color of the first line is decided here.
It's a habit to choose the color here.
For example, it's black at first, so you can make a bright slide like this.
If you bring it to the far left, you can draw it in black.
First, select this and press it to draw it.
Like this.
Next is filling in.
For example, select a pen and draw it.
If this line is closed, select this bucket and tap to fill it in.
I see.
First, click to fill in how to draw a picture.
Let's choose the 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,
choose the mark of the bucket.
If you click where you want to fill in,
you can fill in like this.
Let's start drawing!
Please draw your favorite character.
What should I do?
A simple one.
You can actually draw on the computer.
It's really fun.
Shinji, you have a good sense of drawing.
Yes, I do.
I'm done!
I'm done, too.
That's fast!
I even added a pop-up.
What kind of character did they draw?
Let's take a look at everyone's drawings!
Let's start with Takamatsu-san.
Wow, it's cute!
I'm a rabbit.
I'm really bad at drawing.
But, I think I did a good job.
What kind of movement is this?
I'll show you.
Oh, I see.
What? It grew!
Oh, I see.
The legs grew.
Takamatsu-san's drawing.
Let's take a look at Ohtani-san's drawing.
What?
It's quite novel.
Who do you think this is, Ando-sensei?
Is this Teletubbies?
No, it's not.
Actually, I drew Ando-sensei.
You did?
Yes.
Didn't you notice?
Is this how I look?
You're wearing tights underneath.
How does it look if I move like this?
So cute!
So soft!
This is my character.
Oh, really?
I printed it.
So cute!
Thank you!
You captured the characteristics of the form.
Let's look at Shunji's.
Please.
I'm also a bit like Ando-sensei.
Very popular!
Thank you!
So cute!
This is really like Goho.
It's like a real painting.
Amazing!
If I could do this properly, I could draw better.
Amazing!
What kind of movements are there?
Nice Error!
Wow!
Amazing!
Nice Error!
Wow!
It's amazing, isn't it?
It's like opening your eyes.
Nice Error!
Thank you!
These are the characters drawn by 5 people.
Did you all draw well?
In addition, we moved everyone's original characters in the broadcast.
To move the original character, connect the next costume block from the appearance palette to the programming to move the zip.
Then it looks like a cat running.
We moved the original character with this programming.
Let's look at Ando-sensei.
How is Ando-sensei?
Cute!
It was a little strange that it was too early.
Could you take the first place?
Yes, I got it.
This is fine.
It's cute.
He looks like an old man.
That's all for this review.
Next time, we will use Scratch to challenge new programming.
Please look forward to it.
Shinji-kun, you have a good sense of humor.