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 a type of computer programming where the program is defined by events such as inputs, user actions, sound outputs, and more. The event handler that was used in the I Have a Dream App was the input button. This event handler was used by clicking the button, the input, which then asynchronously played he MLK speech.
2. Is it possible to create an app without event driven programming? Explain.
Answer
No, it is not possible to create an app without event-driven programming. Without this, an app would have no buttons to tap, so nothing would happen unless the app was programmed to do something automatically when it was opened like play a predefined sequence with no events.
3. What elements and components make up the User Interface (UI) for the I Have A Dream app?
Answer
Elements that make up the user interface for the app were texts, such as labels, the button itself, and the photo of MLK.
4. What are some of the elements that make up the UI for a car? A vending machine?
Answer
Elements that make up the UI of a car include but are not limited to: Turn indicator switches, buttons for various uses such as hazard lights, and dials for things like the AC. The UI of a vending machine includes buttons with numbers and letters, a display of costs and such, and other various buttons.