Important Announcement
PubHTML5 Scheduled Server Maintenance on (GMT) Sunday, June 26th, 2:00 am - 8:00 am.
PubHTML5 site will be inoperative during the times indicated!

Home Explore โปรเเกรม

โปรเเกรม

Published by Guset User, 2022-01-05 09:11:44

Description: โปรเเกรม

Search

Read the Text Version

Logic Conditional_if_then_else การเขยี นโปรแกรม: Make Code Programming เปา้ หมาย:เพอื่ การเรยี นรูพ้ นื้ ฐานการเปรยี บเทียบ ผลโปรแกรม :เมอ่ื กด soledad ก็จะปรากฏคำส่ัง ขน้ั ตอนการเขยี นโปรแกรม 1. เข้าไปที่ Link:https://makecorde.microbit.org เพอ่ื เข้าหน้าโปรเเกรม make code คลิกเลือก New Projet จะได้หน้าต่างดังรู ป

2.ตั้งชอื่ กิจกรรมวา่ \"Logic Conditional_if_then_else\" จะได้หน้าต่างดังรู ป

3.คลิกท่ีคำส่ัง \"Input\" เเล้วเลือก on button\"A\" pressed

4.คลิกคำส่ังvaribles สรา้ งคำส่ัง \"dice\" จะได้ดังรูป

5.คลิกท่ีคำส่ัง \"Input\" เเล้วเลือก on button\"B\" pressed

6.คลิกคำส่ังvaribles สรา้ งคำส่ัง \"Score\" จะได้ดังรูป

7.โคดควบคมุ motor

8.เเสดงผลของโคดคำส่ัง ลิ้งโปรเเกรม https://docs.google.com/document/d/1ctBjTT6K op8_feEkka6KuUQ05-zjtZ5zcmh83ykJwL4/edit? usp=drivesdk

Loops_For การเขยี นโปรแกรม Make Code Programming เปา้ หมาย : เพอ่ื การเรยี นรูพ้ นื้ ฐานการใชโ้ ปรเเกรม สัญญาณLEDไฟวง่ิ วน ผลโปรแกรม : กด A จะมไี ฟวงิ่ วน กด B จะปรากฏรูปทรงต่างๆ กด A+B จะปรากฏไฟLEDวงิ่ ตามตัวอักษร ขนั้ ตอนการเขยี นโปรเเกรม 1. เข้าไปท่ี Link:https://makecorde.microbit.org เพอ่ื เข้าหน้าโปรเเกรม make code คลิกเลือก New Projet จะได้หน้าต่างดังรู ป

2.ต้ังชอ่ื กิจกรรมวา่ \"Loops_For\" จะได้หน้าต่างดังรูป

3.ใชค้ ำส่ัง forever 4.เลือกคำสั่ง \"Loops\" เเล้วเลือก for_do

5.คลิกเลือกคำสั่ง varibles สรา้ งคำส่ัง \"Xindex\" เเละ \"Yindex\"

6.โคดควบคมุ motor

7.เเสดงผลของโคดคำสั่ง ล้ิงโปรเเกรม https://docs.google.com/document/d/1yrf-Wb-R RxjyO-MBmyAdE9SszDoHghl4rYuTg4l1w-8/edit? usp=drivesdk

Array_pointer การเขยี นโปรแกรม Make Code Programming เปา้ หมาย:เพอ่ื การเรยี นรูพ้ นื้ ฐานการใบป้ รศิ นาใบค้ ำ ผลโปรแกรม : เมอ่ื กด soledad ก็จะปรากฏคำสั่ง ขนั้ ตอนการเขยี นโปรเเกรม 1. เข้าไปท่ี Link:https://makecorde.microbit.org เพอื่ เข้าหน้าโปรเเกรม make code คลิกเลือก New Projet จะได้หน้าต่างดังรู ป

2.ตั้งชอื่ กิจกรรมวา่ \"Array_pointer\" จะได้หน้าต่างดัง รู ป

3.ใชค้ ำสั่ง on start 4.ใชค้ ำสั่งVariables เลือกใช้ set pointer to array of {blue,black,gole,gray,orange,purple,pink,red, green,yellow}

5.ใชค้ ำส่ัง Input เลือก on botton \"A\" , \"B\" , \"A+B\" 6.โคดควบคมุ motor

7.เเสดงผลของโคดคำสั่ง ลิ้งโปรเเกรม https://docs.google.com/document/d/1mFlF2Ejg 9435uWIUoQATM1fKNqeSHv1SxtzivMluv8c/edit? usp=drivesdk

Boolean การเขยี นโปรแกรม Make Code Programming เปา้ หมาย:เพอื่ การเรยี นรูพ้ น้ื ฐาเขียนโคดโยนเหรยี ญสอง เหรยี ญ ผลโปรแกรม : เมอื่ กด A 1ครง้ั จะปรากฏคำสั่งเชน่ A=1,B=0 เมอ่ื กด B 1ครงั่ จะปรากฏคำสั่งเชน่ B=1 ,A=0 ขน้ั ตอนการเขยี นโปรเเกรม 1. เข้าไปท่ี Link:https://makecorde.microbit.org เพอื่ เข้าหน้าโปรเเกรม make code คลิกเลือก New Projet จะได้หน้าต่างดังรู ป

2.ต้ังชอ่ื กิจกรรมวา่ \"Boolean\" จะได้หน้าต่างดังรูป

3..ใชค้ ำสั่ง on start 4.ใชค้ ำส่ัง \"variables\" เลือก [set_PlayerAScore to 0] [set_PlayerBScore to 0]

5.ใชค้ ำสั่ง \"Input\" เลือก on botton \"A\",\"B\" 6.ใชค้ ำส่ัง \"variables\" เลือก [set_CoinA_to__] [set_CoinB_to__]

7.โคดควบคมุ motor

8.เเสดงผลของโคดคำสั่ง ล้ิงโปรเเกรม https://docs.google.com/document/d/1AeDzKYl0 NVzBPYTOIWpvnPwICrnnZ4kUduDQrBnSRk8/edi t?usp=drivesdk


Like this book? You can publish your book online for free in a few minutes!
Create your own flipbook