1 / 14

跑 道

广东省佛山市南海区新编小学五年级信息技术教材. 小龟练跑. --repeat 语句的使用. 执教:广东省佛山市南海区大沥镇横江小学 何国星. 跑 道. 第二次赛跑. 跑 道. 200 步. 200 步. 200 步. 200 步. 该怎么办呢?. 跑 道. 200 步. 200 步. 200 步. 200 步. 正方形. 跑 道. 200 步. 200 步. 200 步. 200 步. 一、分析图形. 4. 分析 1 :正方形有 _____ 条相等的边,有 ______ 个 ______ 度的角?. 4.

Download Presentation

跑 道

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 广东省佛山市南海区新编小学五年级信息技术教材广东省佛山市南海区新编小学五年级信息技术教材 小龟练跑 --repeat语句的使用 执教:广东省佛山市南海区大沥镇横江小学 何国星 跑 道

  2. 第二次赛跑

  3. 跑 道 200步 200步 200步 200步 该怎么办呢?

  4. 跑 道 200步 200步 200步 200步 正方形

  5. 跑 道 200步 200步 200步 200步 一、分析图形 4 分析1:正方形有_____条相等的边,有 ______个______度的角? 4 90 分析2:要跑一圈回到原点并保持起跑的方向,小龟必须跑完 ______条相等的边和转______个90度的角。 4 4

  6. 跑 道 200步 200步 200步 200步 二、分析路线 前进200步,右转90度 fd 200 rt 90 B C fd 200 rt 90 前进200步,右转90度 前进200步,右转90度 fd 200 rt 90 D A 前进200步,右转90度 fd 200 rt 90

  7. 4 8 40 。。。。。。 重复执行 1圈 10圈 2圈 repeat (重复命令)

  8. 重复次数 要重复执行的一个或一组命令 要让小龟跑一圈正方形,程序的循环次数和循环体分别是什么? repeat ? [ ? ] 重复命令 重复次数 循环体 repeat (重复)命令的用法 命令格式:repeat n [循环体] 命令作用:小龟重复执行n次[ ]中循环体的命令 。

  9. 跑 道 200步 200步 200步 200步 要让小龟跑一圈正方形,程序的循环次数和循环体分别是什么? repeat ? [ ? ] 4 fd 200 rt 90 重复命令 重复次数 循环体 fd 200 rt 90 B C fd 200 rt 90 fd 200 rt 90 D A fd 200 rt 90

  10. B C 200步 C 200步 200步 A 200步 D A repeat 4 [ fd 200 rt 90 ] 跑一圈,循环次数和循环体还可以是什么? repeat ? [ ? ] 2 fd 200 rt 90 fd 200 rt 90 fd 200 rt 90 fd 200 rt 90 fd 200 rt 90 fd 200 rt 90

  11. B C 200步 C 200步 200步 A 200步 D A repeat 4 [ fd 200 rt 90 ] 2 fd 200 rt 90 fd 200 rt 90 repeat ? [ ? ] 跑一圈,循环次数和循环体还可以是? repeat ? [ ? ] 1 fd 200 rt 90 fd 200 rt 90 fd 200 rt 90 fd 200 rt 90

  12. 跑 道 200步 200步 200步 200步 repeat 4 [fd 200 rt 90] repeat 2[fd 200 rt 90 fd 200 rt 90] repeat 1 [fd 200 rt 90 fd 200 rt 90 fd 200 rt 90 fd 200 rt 90 ] 既然循环体可以多样,哪么是不是任何一个或一组命 令都可以成为循环体呢? fd 200 rt 90 fd 200 fd 200 rt 90 fd 200 B C D A

  13. 100 100 100 100 循环体 100 100 100 100 看下面的“跑道”,小龟要跑到终点,哪么repeat语句中的循环体是? 终点 fd 100 rt 90 fd 100 lt 90 起点

More Related