DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 963,274 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Sarah Bartley
Sarah Bartley

Posted on

How to Solve the Identifying Some Variables

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 are 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
Enter fullscreen mode Exit fullscreen mode

These are good variable choices because the values will vary for each bridesmaid since there are multiple options for each item.

Top comments (0)

Take a look at this:

Settings

Go to your customization settings to nudge your home feed to show content more relevant to your developer experience level. πŸ›