2.2 I Have a Dream Tutorial Curriculum Page
Answer the following questions:
1. In your own words, describe what event driven programming is. What event handler was used in the I Have a Dream app? How was it used?
Answer
Event driven programming is programming that lets the computer wait until there is a function. The event handler in the MLK app was a button click, and is used to activate a sound file.
2. Is it possible to create an app without event driven programming? Explain.
Answer
Yes it is possible but the commands would be limited. The commands wouldn't work so the buttons also wouldn't.
3. What elements and components make up the User Interface (UI) for the I Have A Dream app?
Answer
The elements of the Martian Luther King app UI has the screen, 2 labels, the sound player, and the Martian Luther King picture.
4. What are some of the elements that make up the UI for a car? A vending machine?
Answer
The elements of the car are the doors, the steering wheel, the speedometer, and the radio. The elements of a vending machine's are the buttons, the display of items, and the digital screen.
When the button is pressed, sound1 is played.