Data – Design Phase

Eddieuamaker(Front end) and viridiana00(Back end)

Front End – User is asked a number of questions in order to find out what kind of music interests them(i.e Genre, temp, lyrics, bass, etc)

Back end – Through the answers the user gives in the front end, a song is recommended to them.

Front end Flow chart

IMG_0438

Back End Pseudo Code

Pseudo code

  1. Create individual empty lists for all variables of user inputs found in front end code.
  2. Check if user genre input matches any song’s genre in library
    1. If only one match, print the title and performer of song
    2. If more than one, place all matches into the empty list specific to genre matches
    3. If no matches, then continue to check the user’s sub genre input
  3. Check if user sub-genre input matches any song’s sub genre in the library
    1. If one match, print the title and performer of song
    2. If more than one, place all matches into the empty list specific to sub genre matches
    3. If no matches, then continue to the check the user’s prinstrument input
  4. Check if user’s prinstrument input matches any song’s prinstrument in the library
    1. If one match, print the title and performer of song
    2. If more than one, place all matches into the empty list specific to prinstrument matches
    3. If no matches, then continue to check the user’s bass input
  5. Check if user’s bass input matches any song’s bass in the library
    1. If one match, print the title and performer of song
    2. If more than one, place all matches into the empty list specific to bass matches
    3. If no matches, then continue to the user’s tempo input
  6. Check if user’s tempo input matches any song’s tempo in the library
    1. If one match, print the title and performer of song
    2. If more than one, place all matches into the empty list specific to tempo matches
    3. If no matches, then continue to check the user’s lyric input
  7. Check if user’s lyric input matches any song’s lyric value in the library
    1. If one match, print the title and performer of song
    2. If more than one, place all matches into the empty list specific to lyric matches
    3. If no matches, then continue to check the user’s feeling input
  8. Check if user’s feeling input matches any song’s feeling value in the library
    1. If one match, print the title and performer of song
    2. If more than one, randomly select an individual song using a random generator
    3. If no matches, then tell user there was no matches and code must be run again
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s