The quiz will be available during the first few minutes of lab, which you will complete individually. Your lab TA will open the quiz and tell you the password you will need to get into the quiz for your section. For convenience, please click on your lab section below to access your quiz:
Section 10 am - https://forms.gle/Tg5QxiCEowmFbZC47
Section 11 am - https://forms.gle/ioRY5iN1Xsq46cmN9
This lab is designed to help you practice using variables to store and manipulate information from user input.
In this lab, you will create an app that allows the user to play Mad Libs. The app will prompt the user to enter a series of words by means of a sequence of screens, and then input those words into a story displayed on the final screen. For more information on Mad Libs, read this Wikipedia article on it.
Do this by completing the Mad Libs App, started for you here in this App Lab app.
Begin by opening the app linked above, clicking View Code in the top-right, then selecting the Remix button near the top-left. Rename the app with a meaningful name that you will remember and include your name at the top of your code.
The app you've been given has the screens shown below.
On each of the middle four screens you need to use variables to store the user's responses.
Both the verb and adverb screens use text input. In the screens for the noun and adjective, which use a dropdown menu and radio buttons respectively, you should provide options of nouns and adjectives from which the user can select one.
Then, in the Code mode, find all the places in the code where there is a comment along with three dots like this: // ... This indicates where you need to add one or more lines of code to make the app functional.
Find a partner, or if needed a group of 3 may be formed. You should each create your own app, but check in with each other as you work on the activity, ask questions, or share interesting things you find along the way. Offer feedback on each other's work.
The TAs will be available for any assistance needed, so please feel free to ask them any questions as well.
Once you are done, copy the link to your app from AppLab. Turn this in on Gradescope, under "Lab 6: Mad Libs App."
This lab must be completed by 11:59pm on Tuesday, October 1, 2024. No late submissions will be accepted.
0.5 points: Options for nouns and adjectives are provided to the user to select from.
0.5 points: Functionality has been added so that buttons properly take the user from one screen to the next. The order in which the screens are displayed should be: Welcome, Verb, Noun, Adjective, Adverb, Story.
1 point: The verb, noun, adjective, and adverb are all stored within variables and properly displayed on the final screen with the story.
Extra credit (1 point): Create a new screen with a slider, and include the user's response from the slider into the story (for instance, a slider from 50-100 may determine the number of fish bones in the comb, or a slider from flies to elephants could give information about the audience for the Monkey King's dancing). Feel free to modify the story text to incorporate the slider. You may need to explore how sliders work by looking at the App Lab documentation.