This app allows you to listen to two different speeches. One of the speeches can be heard by tapping on the image of Malcolm X. When tapped, a speech by him will be heard. The speech can be paused by either tapping on Malcolm X again or by tapping on the image of Martin Luther King Jr. The other speech, a part of Martin Luther King Jr's "I Have a Dream" speech, can be heard by tapping on the image of Martin Luther King Jr. It can be paused by tapping on the image of him again, or by tapping on the image of Malcolm X.
Reflection
1. What components make up the User Interface (UI) for this enhanced version of the I Have A Dream app? The components that make up the User Interface of the enhanced I Have a Dream app are the 2 buttons, each button having an image on it, the horizontal arrangement, the 2 audio players, the 2 labels, the photo, and the background.
2. A computational artifact something created by a human using a computer. We've just created a mobile app, which is certainly an example of such a artifact. Give at least 3 examples from your own experience of computational artifacts that you've created—images, videos, presentations, mash-ups—and describe the software you used to create them. I have created many short, edited videos using iMovie and Windows Movie Maker. I made multiple presentations using PowerPoint and Keynote. Lastly, I have created many images using Microsoft Paint.
Design
Components -Label ("Martin Luther King and Malcolm X") -Image (photograph of MLK with Malcolm X) -Label ("tap to hear each speech") -Horizontal arrangement -Button (Button_MLK) -Button (Button_X)
Coding The app uses two event handlers. To start the event, the user must click on either the Button_X (the picture of Malcolm X), or the Button_MLK (the picture of Martin Luther King Jr). When one is clicked the player linked to its respective button will begin to play. Each event handler contains an If/then/else statement. This statement controls what will happen. When one of the buttons is tapped, and no player is playing, the linked player will begin to play. If the player, however, IS playing, then it will pause the player.