Advertisement
Guest User

Untitled

a guest
Jan 7th, 2020
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.53 KB | None | 0 0
  1. Noel is creating a music quiz game.
  2. ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  3. The game stores a list of song names and their artist (e.g. the band or solo artist name). The player needs to try and guess the song name.
  4. ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  5. ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  6. The game is played as follows:
  7. ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  8. • A random song name and artist are chosen.
  9. ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  10. • The artist and the fi rst letter of each word in the song title are displayed.
  11. ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  12. • The user has two chances to guess the name of the song.
  13. ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  14. • If the user guesses the answer correctly the first time, they score 3 points. If the user guesses the answer correctly the second time they score 1 point. The game repeats.
  15. ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  16. • The game ends when a player guesses the song name incorrectly the second time.
  17. ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  18. ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  19. Only authorised players are allowed to play the game.
  20. Where appropriate, input from the user should be validated.
  21. ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  22. Design, develop, test and evaluate a system that:
  23.  
  24. ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  25. 1. Allows a player to enter their details, which are then authenticated to ensure that they are an authorised player.
  26. ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  27. 2. Stores a list of song names and artists in an external file.
  28. ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  29. 3. Selects a song from the file, displaying the artist and the first letter of each word of the song title.
  30. ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  31. 4. Allows the user up to two chances to guess the name of the song, stopping the game if they guess a song incorrectly on the second chance.
  32. ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  33. 5. If the guess is correct, add the points to the player’s score depending on the number of guesses.
  34. ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  35. 6. Displays the number of points the player has when the game ends.
  36. ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  37. 7. Stores the name of the player and their score in an external file.
  38. ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  39. 8. Displays the score and player name of the top 5 winning scores from the external file.
  40. ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement