U2 Lesson 4 squash and Stretch

https://drive.google.com/open?id=0B5lw2MSq8eoeRVB5a05WOG9CRkUCapture

During this lesson, I learned how to use guides, squash and stretch objects.

Advertisements

Data – Mid point status report(Published late)

At this point, our code is at a point where we can see progress. The front end code has been completed, and we are currently at the testing process for the back end code. With the front end completed, I took the time to go back to the song library and clean it up for any “errors” the computer may find. For example, feelings that was’t on the restricted list, capitalization and any special characters(such as dashes). This cleaned version of the song library was sent out to students who personally requested it from me. What we plan on doing next is cleaning the front end code, and then complete our back end code. Furthermore, we’ll need to insert comments where necessary.

Data – Deliver

 

In order to check for mistakes within our code, we decided to revise each other’s codes before working on our final iterations. Viridiana checking on my front end, and me checking on the back. For both the front and back end, a number of hard to spot variable mistakes were found, which prevented the codes from running. Our goal was to also complete the final iteration of the back end together in order to ensure that it was working.

This slideshow requires JavaScript.

Data – Develop

Front End Versions

Version 1(Name + Introduction)

w

Version 2

  • Add check for restricted strings and integers for Genre, bass, tempo, lyrics and Feeling,
  • Includes half of the elements
  • Included append, which holds the user’s answers

sdsd

Version 3

  • Completed the other half of the elements

sdsdsd

  • Added the feelings element
  • Included results(the answers the user gives is written out in the end)

sdsdsdsd

Back end Versions(incomplete)

Version 1

s

Version 2ss

Version 3sss

Version 4sssssssss

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