Skillcrush has students do a challenge where they practice identifying variables in a scenario. In this scenario, Becky is the maid of honor at her best friendβs wedding. She is trying to figure out the bridesmaid ensembles so it will work for all the bridesmaids.
Below is the scenario Skillcrush gives students.
Some of them want a strapless dress, while others want a halter top or spaghetti straps. Some want a long dress, and some want tea-length. The bride doesn't care what color the dresses are, so long as they are one of her colors (persimmon, clover, or silver) and so long as the bags and shoes are the same color.
The one thing they can all agree on is that they want flat shoes that are good for dancing, but whether they are Mary Jane or ballet flats is still up for discussion.
Solution
So what are some of the variables you might find in this situation? There are 7 variables students can find in this scenario. Hereβs a list of the 7 variables you can find in this scenario.
STORE dress top type
STORE dress length
STORE dress color
STORE shoe color
STORE shoe type
STORE bag color
These are good variable choices because the values will vary for each bridesmaid since there are multiple options for each item.
This post was originally published on June 6, 2021 on DEV. I made minor changes to the original post for CodeNewbie.
Top comments (1)
To solve the process of identifying some variables, start by clearly defining the problem and outlining the goal of your analysis. Categorize variables into dependent and independent types, ensuring each is measurable and relevant to the objective. Use techniques like data visualization and statistical analysis to explore relationships between variables and validate their significance. For instance, a Las Vegas wedding videographer might identify key variables such as lighting, venue size, and angles to create stunning video compositions. Similarly, breaking down variables into actionable components ensures a structured and effective problem-solving approach.