This unit teaches students about creating procedures and playing music in an app. The objective is to create an app with piano keys that the user can press to play musical notes. The "MyPiano" unit emphasizes an iterative and incremental approach, where students start with one note and then gradually add more notes to their apps. Procedures, which are a crucial part of abstraction and modularization, will also be introduced. Students will write a procedure for playing a note and then use the same procedure for playing the other notes. This will enable them to reuse the code for each subsequent key on the piano app they create.
Introduction to Layout Components: Demonstrate HorizontalArrangements and VerticalArrangements so students understand how they can help to determine the layout of an app. Components inside VerticalArrangements are placed below each other. That is also the default behavior in App Inventor. Components placed inside HorizontalArrangements appear side by side.