AISubs
In 2020, programming education will be introduced in elementary school classes.
Now, we must have a computer in our lives.
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 one step ahead of next year.
We will learn programming with fun using games and music.
What is that?
It's Takayama!
A love song sung by a programming star.
So, everyone in front of the TV should prepare a tablet or a computer.
Let's go on a journey of programming while having fun with us.
Mezase! Programming Star
Let's get started!
I'm Kyoko Gunji, a member of Mezase! Programming Star.
Nice to meet you.
And this is Mr. Ando.
Nice to meet you.
Nice to meet you, too.
Today, I'm going to study with everyone in front of the TV again.
Shonan no Kaze's young husband, Shinji Nira.
Emily, who likes fashion, and Inori, who likes games, from Equal Love, produced by Rino Sashihara.
In addition, this time, a new student has joined us.
Ms. Hana Ooba of Equal Love.
Nice to meet you.
And the other one is Ms. Saya Tanizaki of Not Equal Me.
Nice to meet you.
Nice to meet you. I'm Saya Tanizaki of Not Equal Me.
Nice to meet you.
First of all, let's review what programming is.
Are the three people who did it last time already in your head?
Yes, it's perfect.
Of course.
Let's check it out.
It's perfect.
Shinji-kun.
Yes.
What is a program?
An order book.
That's correct.
I will explain the mechanism of programming in the program called the first order.
Please explain.
Yes.
Your mother gives you instructions and you do shopping for the purpose.
Please think of this instruction as this program.
Here is a question.
Ms. Odani.
Yes.
What is the necessary procedure for Shinji-kun, who is using it for the first time, to shop in the best way without getting lost?
Yes.
Algorithm.
That's correct.
What is it?
This is perfect.
Great.
Please look at this.
Shinji-kun tries to go out to buy what his mother asked him to buy, but there are many ways to get to the store.
If you walk a path you don't know, you may get lost.
In that case, you want to go through the most efficient way and shop at the shortest distance.
What you need at this time is an algorithm.
Yes.
Ms. Noguchi.
Yes.
What is an algorithm?
Yes.
It's about efficient processing.
That's correct.
What is it?
Everyone is perfect.
Let's review. The first study is to know the greatness of the computer.
Now, let's compete between humans and computers using cards.
In order to know the greatness of the computer, we will have a quick line-up of cards.
Hana-chan from Equal Love will have 1 to 9.
Hande will have numbers from 1 to 100 in small order.
Which one will be faster?
This program is provided by PLOS, a programming learning system.
I'll do my best.
As fast as possible.
Faster than the computer.
Aim for faster than the computer.
I'll do my best.
This is a fight I can't lose.
I can't lose.
Ready, start!
Yes!
So fast!
By the way, it took 0.96 seconds for the teacher to raise his hand.
0.96 seconds?
It took 0.96 seconds for the teacher to raise his hand.
But the computer finished the line-up in an instant.
It didn't even take a second.
It didn't take a second.
While Hana-chan changed from 1 to 9 in 7 seconds,
the computer can change from 1 to 100 in an instant.
Let's take a look at how the computer changed the line- up of the numbers.
By the way, if you look at it, it looks like this.
It's a little bit of a headache, isn't it?
I don't know what it is.
This is the wrong one.
I don't know what it is.
I don't want to see it.
You have to narrow your eyes.
You don't like it, do you?
I don't like it very much.
You don't like it very much, do you?
I don't like it very much.
I'm aware that programming is difficult, but this is exactly what it is.
However, recently, an innovative programming environment has been created.
What is it?
Here it is.
It's called Scratch.
Scratch.
Yes.
You can do this just by combining blocks.
It's too compact.
That's right.
Unlike the source code used in conventional programming, Scratch can be programmed just by connecting blocks.
It's very easy to get Scratch.
Search Scratch on the Internet and go to Scratch's website.
If you click Create, everyone can start right away, so let's get ready.
If you're ready, let's use today's mission, Scratch!
It's really easy for children to understand, but there's a palette of paint, right?
It's called a block palette, and it's divided by color.
It's about movement and appearance from above.
There are also various code blocks in this palette.
Then, there is a code area where you can work with this code block.
As a result of implementing this code area, this is called a stage, and this is called a sprite.
This cat is called Scratch Cat, and this is called a sprite list.
In fact, this sprite can be changed to your character later.
So you can change it to your favorite character, so please look forward to it.
Did you all understand the name on the screen of Scratch?
It comes out many times in class, so remember it!
Let's move 10 records in the first study!
Now, here's a palette.
First of all, when the space key is pressed in the event,
It's called drag and drop, so I'll release it with this.
When the space key is pressed, it's called drag and drop.
First of all, everyone, did you go that far?
Next is the blue movement block.
Move 10 steps from here.
Did you understand so far?
First of all, when the space key is pressed from the event palette,
It's called drag and drop, so I'll release it with this.
Let's choose 10 movements from the movement palette and connect them.
Do we need to connect something like this block?
Yes, if it's separated, this is a separate program, so it's a single program.
Let's take a look at the member's screen to see if the program is ready.
It's the first scratch, but it's all done properly.
Now, when the program is ready, let's press the space key.
Oh, it's moving.
One, one, one, one.
This is called 10 steps, but it's 10 dots, and 10 dots are moving.
Oh, I see.
I don't know how to translate this, but 10 steps is 10 dots moving.
Everyone, it's not the feet that move, it's the cat that moves forward.
That's right. It's moving like this.
The 10 dots that Mr. Ando just explained are not 10 steps, but 10 dots on the screen.
The next study is 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.
For the time being, it feels like the cat is going home.
Let me explain the current programming.
First, select when the flag is pressed from the yellow event block.
Next, turn it 90 degrees from the blue event block.
Select the X coordinate as 1 and the Y coordinate as 1, and change the number 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 everyone understand?
By the way, where is the flag? It's here.
Flag.
Oh, it's the same.
If you click on the flag, it will come 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'm going to fake the block now, so I'm going to attach these 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 0.
This is OK.
Then press the flag.
Flag.
It came back.
Great.
There was a new discovery from the error.
That's right.
It's a new discovery from this mistake, so don't be afraid of mistakes.
Up until now, it was said that you shouldn't make mistakes in school, but in programming, it's a plus to make mistakes.
Please think so.
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 be punished.
It's a world without knowledge, but in the programming world, you will make more and more mistakes.
Don't make a mistake.
That's right.
This is the programming that Shinji made a mistake.
The blocks are connected vertically, but they are not connected horizontally.
Don't be afraid of failure and try various programming.
It may have been a little difficult from the beginning.
But it's a nice error.
It's everyone's fault.
Is it okay so far?
Do you have any questions so far?
It's okay.
First, I moved the cat.
Next, let's run the cat.
After this, challenge to make the cat run.
Do you know what kind of blocks you should bring?
The next study is to make the cat run.
This is a cat, but when you press the space key, it moves like this.
It's a little unnatural, isn't it?
It's moving like this.
So you need to walk like this.
That's what it is.
So, the appearance of the purple pallet.
And here is the costume.
It says to make the next costume.
Please put it under this.
Under the space key?
That's right.
What happens if you press the space key with this?
To make the cat run,
Choose the next costume from the purple pallet.
Connect it to the bottom of the programmed block.
Let's see the cat running!
Here comes the old lady.
Is she running?
Yes, she is.
She's good.
She's fast.
How about you, Shinji?
I'm following her.
She's good.
She's running.
Sensei, everyone's done so far, right?
It's perfect.
Now, let's see today's work.
Let's compete with a cat.
It's a race, but everyone runs in the same way, right?
Yes.
For example, you use dice in the game, right?
Yes.
You don't know which eye will come out of the dice.
That's why it's interesting.
So, in Scratch, there is a function that is the same as the dice.
It's called a random number.
And where is it?
It's here.
It's a green palette.
It's the first time I've seen it.
The number of runs from 1 to 10 depends on the order.
It's a circle.
It's a combination.
That's right.
You can put it in here.
I don't know how many of them will move.
I don't know.
In this case, there are times when one of them moves, and there are times when 10 of them move.
That's why it's more game-like.
I'd like to compete with this.
To make it more game-like,
select the number of runs from 1 to 10 from the green palette,
and bring it to the block that moves 10 of them,
and the blocks will be removed from each other.
This means that you don't know how many steps you will take every time you press the space key.
Are you ready?
Let's compete with the students.
Now, it's time to practice.
It's a cat race battle.
You can't lose.
The rules are very simple. The person who makes the cat run and reach the finish line first wins.
Let's do it. When you reach the finish line, raise your hand and tell us.
Ready, start!
You were so fast!
1, 2, 3!
Shinji-kun!
Noguchi-san was the fastest.
Congratulations!
How can you be so fast?
My right hand...
You play games for hours a day.
That's how you play games.
How about you, Benda?
I had a lot of fun because I was able to play games with a computer.
This is the first time I've done something by myself.
I was able to take a step closer to making games.
I was very happy.
When you learn together, you can compete and get used to the game.
I thought I couldn't do it alone.
I'm glad you mixed it up.
After this, let's learn programming that is familiar to us.
Let's investigate the useful programming in the station.
Let's learn programming that is familiar to us.
Most of the smart phones and games that you use are actually made by programming.
There are many.
Today, we are going to learn about the programming that we are familiar with, so we came to Odakyu Dentetsu.
Yatsune-chan, what do you use when you get on the train?
I use an extra ticket or a pass.
Don't you want to know how you used to get on the train before you could get an IC card?
I want to know!
We are going to ask Odakyu Dentetsu about the programming that we use on the train.
We came to Odakyu Dentetsu Shinjuku Station.
This station is used by about 500,000 people every day.
The power of programming is very important for many people to be able to use it conveniently.
Let's start the survey.
Nice to meet you.
I heard that there are a lot of programs on the train we use every day. What kind of programs are there?
There are a lot. First of all, there is an automatic ticket vending machine.
This is an automatic ticket vending machine.
In the old days, the tickets were sold by the clerk at the window.
After that, the automatic ticket vending machine was introduced.
At first, it was a ticket vending machine that could only sell tickets.
It evolved little by little, and now a lot of tickets can be sold.
You can choose the number of tickets and the free pass.
This is a map, and you can choose the free pass where you want to go.
It's easy to understand.
The programming has evolved little by little.
It's very convenient.
I think you often use it to charge your IC card.
In addition to various tickets, it has a variety of functions, such as changing the special designated seats and introducing air seats.
With this introduction, the burden of the station staff and the waiting time at the window of the user has also been reduced.
Next is the automatic ticket machine that everyone is familiar with.
It seems that a lot has been improved by this.
How do you get a ticket before you can get an automatic ticket or IC card?
Before the automatic ticket machine is introduced, a station staff will stand at the position of the automatic ticket machine, receive the ticket from the customer, and put scissors in the ticket.
Is it one by one?
That's right. It was a very difficult task because I put scissors in each piece.
That's right. It also takes time.
Here, we will experience how they actually cut the ticket.
First of all, can I ask how to hold it?
Hold both ends of the ticket with your thumb and index finger so that you can pinch it from above.
You can move it with your middle finger.
That's right. You're good.
Both of you are very good.
You did it.
Wow, it's amazing.
I wonder if I can do it.
You're good at it.
It's heavier than I thought.
This is hard.
I thought it would be hard if I did it over and over again.
That's right.
The rush hour is about 40 to 50 people per minute.
If you don't do it quickly, the ticket gates will be crowded.
The one we have and the one Mr. Norahashi has are different.
I noticed a good point.
In fact, the shape of the ticket gate depends on the station.
You have to learn all the types of stations with dozens of stations at that time.
It was hard just to remember.
It takes time and effort for people to do it.
By becoming an automatic ticket gate, the work of the station staff will be reduced.
Customers don't have to wait for a long time.
I think there are benefits for both.
Automatic ticket gates have other benefits.
In the past, this used ticket was thrown away as a lot of garbage.
However, due to the digitalization, the amount of garbage has decreased and the environment has become kinder.
Next is this automatic ticket gate.
This is the system that Odakyu Electric Railway developed for the first time in the world.
At first glance, it looks like a normal ticket gate.
If you look closely, you can see where to touch.
It says the delay notice.
This is the opportunity to issue a delay notice when the train has stopped.
Delay notice to report the delay of the train to the company or school.
Usually, the station staff distributes it in front of the ticket office, but Odakyu Dentetsu made a system that comes out automatically from the ticket office.
Customers who want a delay notice have gone to the ticket office, and the ticket office is very crowded.
In order to solve such a thing, by issuing a delay notice from the ticket office, it is possible to receive a delay notice smoothly.
It is very convenient.
You can take it together when you go out.
That's right. We also guide customers quickly.
Now, it's all thanks to programming that users can use trains and stations comfortably.
It's amazing. I will learn from the beginning.
Programming is really amazing.
It's great, isn't it?
There is still more, so let's go.
Yes. So, that's it for this week.
Next time, we will infiltrate the station's platform.
What is the system that protects the life hidden in the platform?
Today's review.
This time, I learned programming using Scratch.
First, to move 10 cats, when the space key is pressed from the event palette, and when you move 10 from the movement palette, the cat moves forward.
In addition, if you connect from the appearance palette to the next costume, the cat will move as if it were running.
Next time, we will make an original character with Scratch!
Look forward to it!
This program was brought to you by PLOSTA, a programming learning system.