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 makecode01

makecode01

Published by Guset User, 2022-01-12 05:27:08

Description: makecode01

Search

Read the Text Version

47 Arrayรับค่ำเสียงตวั โน้ต การเขียนโปรแกรม Make code programming เป้าหมาย :เพื่อเรียนรู้พ้นื ฐานการเขียนโปรแกรม Arrayรับค่าเสียงตวั โนต้ ผลโปรแกรม :เพือ่ สร้างและใชง้ านarrayในการเก็บขอ้ มูลท้งั ตวั เลข ตวั อกั ษร และโน๊ตเพลงไวเ้ ป็น ฐานขอ้ มูลโดยขอ้ มูลท้งั ตวั เลข ตวั อกั ษร และโนต้ เพลง ตอ้ งมากกวา่ 1 ข้นั ตอนกำรเขียนโปรแกรม 1.เขา้ ไปท่ี Link : https://makecode.microbit.org เพ่อื เขา้ หนา้ โปรแกรม make code คลิก เลือก New Project จะไดห้ นา้ ตา่ งดงั รูป แลว้ ต้งั ชื่อวา่ ”Array”

48 2.คลิกที่คาส่ัง Music 3.โคดควบคุม Motor

49 4.สว่ นแสดงผล ลิ้งคโ์ ปรแกรม : https://makecode.microbit.org/_cvU63bhwLchq

50 Array Pointer การเขียนโปรแกรม Make code programming เป้าหมาย :เพอ่ื เรียนรู้พ้นื ฐานการเขียนโปรแกรม Array Pointer ผลโปรแกรม :เกบ็ ขอ้ มูลเขา้ ไป เพื่อนาออกมาใชห้ รือประมวลผล เป็นรายการเรียงต่อกนั ไป พร้อมการใชต้ วั Pointer ในการเชื่อมโยงไปยงั คา่ ขอ้ มูลท่ีตอ้ งการ ข้นั ตอนการเขียนโปรแกรม •เขา้ ไปที่ Link : https://makecode.microbit.org เพอ่ื เขา้ หนา้ โปรแกรม make code คลิกเลือก New Project จะไดห้ นา้ ตา่ งดงั รูป แลว้ ต้งั ชื่อ”Array pointer”

51 2.คลิกที่คาส่งั Variables และArrays

52 4.ส่วนแสดงผล ลิงคโ์ ปรแกรม : https://makecode.microbit.org/_C979et01i1yj

ก อ้ำงองิ http://kruwansp.blogspot.com/p/blog-page.html (ตน้ แบบการทาโปรแกรมสมองกล)


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