Your browser version is not supported by this site. CS First may not work properly. Learn more.
7. Wrap-up: Dance Party
Today use the very important computer science conceptof a forever block or loop.
Your dance video could not have been created without themand music in general, could not have been createdwithout the concept of repeating a loop of musical notes.
Loop statements are used everywhere and areeven used in medical devices to save lives everyday.
For example, an ICD is small device used bydoctors and physicians to help controlconditions, such as sudden cardiac arrest.
An Implantable Cardioverter Defibrillatoror ICD is used to treat a dangerously fast heart beat.
The ICD monitors your heart for very fast andpotentially dangerous rhythm disorders.
When an abnormal heart rhythm occurs,the ICD sends a shock to the heart muscleto defibrilate or stop the cycle of rapid twitching.
This medical deviece uses a loop statementto constantly monitor your heart ratebefore sending electrical pulses and shockswhen it detects a very fast, abnormal heart rhythm.
In this club you're using the Scratchprogramming language to build many projects.
Computer scientists like you use many differentprograming languages, but understanding the conceptof the forever loop will make it easy for youto use in future computer science classes in highschool and in your spare time.
You'll be ready to recognize a loop no matter whatprogramming language you are using.
In the next CS First Club you're gonnamake a musical art piece where someone caninteract with your program to play sound and music.
"PHP-logo" by Colin Viebrock (https://commons.wikimedia.org/wiki/File:PHP-logo.svg) -- Licensed by CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0/deed.en)
"Ruby-logo-R" by Tom Schaub (https://commons.wikimedia.org/wiki/File:Ruby-logo-R.svg) -- Licensed by CC BY-SA 3.0 Unported (https://creativecommons.org/licenses/by-sa/3.0/)
"Scratch logo" by Scratch (https://commons.wikimedia.org/wiki/Category:Scratch_(programming_language)#/media/File:Scratchlogo.svg) -- Licensed by CC BY-SA 3.0 (https://creativecommons.org/licenses/by-sa/3.0/)
"The C Programming Language logo" by Rezonansowy (https://commons.wikimedia.org/wiki/File:The_C_Programming_Language_logo.svg) -- Licensed by CC BY-SA 3.0 Unported (https://creativecommons.org/licenses/by-sa/3.0/)