Android Programming with MIT App Inventor 2
Quiz Enhancements
To show you have learned some coding from making this quiz and didn't just copy everything without giving it any thought, you need to program as many of these changes as you can. The first 5 are absolutely required, but implement as many of the following enhancements as possible for full credit.
- Lock orientation - Quiz doesn't work so well when it is sideways
- Make the whole quiz screen scrollable - Give users more room to read the article - a tiny sliver at the bottom is no use.
- Title Bar at the top - Set the Title text to tell users they are on Question # of # so they know how far they have to go.
- Ending Box - Move it under the score report so we don't accidentally exit when we are zooming through the quiz to test the ending. By the way, do we really need the ABCD buttons if the quiz is over? :-)
- Ending Image - Once you are showing them their score, the last image should be replaced with an ending image. Advanced programmers will be able to show a different reward image based on the user's score.
(For a hint on how to do this, see the logic block below!) - Sound Effects - Don't annoy your users, but a little bit of sound effect as feedback for right and wrong answers just adds that extra layer of cool. Add a button to mute all sound effects and you are LEET.
- Image Magnifier - Do we really need a Hint button if we already turned on the article? Add a magnify button so users can open the image url in a separate browser window if they want to zoom in on the high level of detail of that large image out there on the web.
- Custom buttons - Buttons can have images - why not make your own customized versions in Photoshop? If you use transparency (Round buttons, things you can see through) make sure you save as PNG.
To change images and play different sounds based on a user's score:
I created a simple test app that uses a slider to select a score between 0 and 100. The If-Then-Else logic to do something different based on score is as follows (don't just change a label like I did - make the extra effort worthwhile!) These values were strictly arbitrary - you decide your own levels of different "rewards".
Download the test app to see it in action. It does NOT work exactly right... can you figure out why?!
nestedlogic.apk |