U4Ch1L7_ 2025.2026_ Conditionals _ Practice
Purpose: Students will learn a variety of Conditional Statements by editing 3 Apps.
Step #1: Learning Conditionals by Building 3 Separate Apps. (Start with App #1 then #2 then #3)
There is a sequence of 7 Stages you will go through as you develop each App. If you want to change Apps, you have to return to Level 1.
A. MidEase App.
(Build an App that helps users come up with activities to support their mental health.)
- In 7 practice levels (below), you will be walking step-by-step through creating the code necessary to create and customize the app that is showcased.
- Just follow the instructions provided on each level!
- “Run” The App.
- Look at all the elements on the app screen to get a sense of where the user inputs information.
- Now view the segment of the program that shows the Variables. Guess which variables will be receiving Values from the User's Input.
-
- Write the code that recieves the User Input Data from "Rate: 1.Stress/2.Happiness/3.Time".
- Here is the code for your program to receive the user input data from the Stress dropdown - reuse and edit it for the other 2 dropdowns: stress = getNumber(“stressDropdown”);
- In this lesson sequence, you will create the conditionals that keep score, change screens, and display results for an Emoji Movie quiz.
- Declare and Initialize Variables
- Craft the conditionals that determine whether a user's answer was correct or incorrect.
- Update the question text and display the final results for users!
Answer
B. VeloCity App.
(Build an app that helps users calculate the price for renting scooters and bikes.)
- In 7 practice levels (below), you will be walking step-by-step through creating the code necessary to create and customize the app that is showcased.
- Just follow the instructions provided on each level!
- “Run” The App. – With a partner, discuss the following:
- What is the purpose of the App?
- What do you think of the functionality of the App…would you design it differently?
- Tallying Results: Create a system for scoring user responses using conditionals in order to properly assign the final result.
- Display Results: Craft the conditionals which determine which result the user will receive based on their answers to the quiz questions.
- Customize the App: In this final level, you can add your own unique quiz questions, images, and flair. Let the customization begin!
Answer
C. Tix Finder App,
(Build an App that helps users figure out the prices for various concerts).
- In 7 practice levels (below), you will be walking step-by-step through creating the code necessary to create and customize the app that is showcased.
- Just follow the instructions provided on each level!
- Run” The App. – With a partner, discuss the following:
- What is the purpose of the App?
- What do you think of the functionality of the App…would you design it differently?
- Create the Conditionals: Let's create the conditionals that will update the game board when a user interacts with it.
- Check for Wins: Code the conditional logic necessary to check for a horizontal, vertical, or diagonal win.
- Determining a Tie Game: In this final level, you can add your own unique quiz questions, images, and flair. Let the customization begin!
Answer