A Song in Data

Title: Name of the song. It will be in string(including title with #).

Performer: Name of the singer. It will be in string.

Genre: Style of the music given by the programer. It will be restricted string and user have to choose. Ex: blue, classical, country,electronic,funk/soul,hip-pop,jazz,latin,pop,regae,religious,rock,R&b and other.

PrInstrument: Name of the instrument. It will be in string.

Lyrics: Integer from 0-10 based on how important it is to a song. 0 mean there is no lyrics, ex:Fur Elise by Ludwig van Beethoven. 10 mean that the song is all about the lyrics, eg:Sign of The Times by Harry Styles

Vocal: Integer from 0-10 based on the quality of the vocal. 0 mean there is no vocal, ex: My Soul by July. 10 mean the vocal is perfect, ex:The Greatest by Sia, Kendrick.

Tempo: Integer from 1-10 based on the speed of the song. 1 mean the song will be very  slow, ex:Blem by Drake. 10 mean the song is very fast Wifi Wifey by Nick Bean.

Rhythm: Integer from 0-10 based on how develop the rhythm is. 0 mean there is very basic rhythm, ex: happy birthday song. 10 mean there is a very developed rhythm, ex:  summertime by vybz kartel.

mood: How the song make you feel.It will be a restricted string provided by the programer. Ex: sad,happy,angry,in love,hearth broken,intense,soothing,inspiring,hype.

Title                          Performer                 Genre         PrInstrument  Lyrics  Vocal Tempo Rhythm

Hello Adele pop piano 8 8 3 8 heartbroken HYC
Faded Alan Walker electronic synthesizer 9 9 4 5 sad HYC
Hall of Fame The Script pop drum 10 8 6 5 happy HYC
Fur Elise Ludwig van Beethoven classical piano 0 0 7 9 chill HYC
Talking to the Moon Bruno Mars pop piano 9 9 6 8 heartbroken HYC
Glad You Came The Wanted pop piano 9 9 8 8 soothing HYC
Sugar Maroon 5 pop guitar 9 9 6 8 in love HYC
Radioactive Imagine Dragons rock drum 9 9 6 8 intense HYC
Pillowtalk Zayn electronic guitar 9 5 9 sad HYC
My Soul July classical piano 0 0 5 4 sad HYC

 

 

quiz.py

quiz flowchart.JPG

Pseudocode:

  1. The program will run.
  2. The program will set initial variable.
  3. The program will print the intro.
  4. The program will ask the name.
  5. The program will ask that question.
  6. If answer isn’t a positive number or number 1-4, it will ask for a number 1-4.
  7. If the answer is correct, the program will count a score.
  8. If the answer is incorrect, the program will go to next question.
  9. The program will repeat step 5-8 five time.
  10. The program will check score.
  11. The program will print result based on the score.
  12. The program will end.

alien.py part 2

screen-shot-2016-12-22-at-12-45-24-pm

img_1902

PSEUDOCODE:

  • The program will run.
  • The program will set initial variable for start,week, startCheck and weekCheck.
  • The screen will show an introduction about this program.
  • The program will ask the user first question “how many alien landed?”
  • If the answer is not positive integer, the program will set a loop back to the  first question and ask for a positive integer.
  • The program will ask the user second question “how long they had landed?”
  • If the answer is not positive integer, the program will set a loop back to the  second question and ask for a positive integer.
  • Once both answer are positive integer the program will calculation the amount of alien after certain amount of week.
  • The program will end.

screen-shot-2017-01-13-at-3-52-25-pm

 

Alien.py part1

IMG_1900.JPG

Pseudocode:

  • The program will start
  • A introduction about this program will show on the screen
  • First question “How Many Alien Landed?”
  • Second question “How Long They Had Landed?”
  • The user will put the number of alien landed and time measure in week.
  • The program will do the equation “2^ (Week) *(number of alien)”.
  • Calculation will show for the amount of week the user put
  • The program will end.

Screen Shot 2017-01-12 at 2.58.29 PM.png

Screen Shot 2016-12-22 at 12.45.24 PM.png