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?
- Event driven programming is when an app or other program is programmed to run and operate by user related actions, called events. For example, an app that has colors of a picture change when the user clicks on the picture. The event handler used in the I Have a Dream app was the sensor for when the picture was clicked, which caused the speech to be played on the device.
2. Is it possible to create an app without event driven programming? Explain.
- I don't think it's possible to create an app without event driven programming because apps need to be able to respond with actions to the app users' actions (ie. swiping left or clicking on an icon). If the app wasn't programmed to respond in this way, there wouldn't be any interactive features on the app. So, if an app is just composed of a blank screen, technically it could be possible to create it without event driven programming.
3. What elements and components make up the User Interface (UI) for the I Have A Dream app?
- The elements and components that make up the User Interface (UI) for the I Have A Dream app include the app's black background, the audible click that occurs when the image is clicked, the image that appears on the screen (which is a button), and the labels above and below the image.
4. What are some of the elements that make up the UI for a car? A vending machine?
- Some of the elements that make up the UI for a car include an audible horn. When a person presses on their car horn, there is a gage that indicates pressure, and results in a a horn sound. In addition, the controllers for windows make up the UI for a car. When they are pressed on or pulled up, the window follows the command that the user indicates. In addition, radio buttons when pressed on can turn on the radio, change stations, and other commands. The elements that make up the UI for a vending machine include the buttons that indicate which snack someone is choosing.