Advertisement
akosiraff

Download PlayerScore Answer

Jul 23rd, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1.  
  2. Download: https://solutionzip.com/downloads/playerscore/
  3. Instructions: The following programming problem can be solved by a program that uses three basic tasks-Input Data, Process Data, and Output Results. To process the data, it uses loops, arrays, decisions, accumulating, counting, searching and sorting techniques. Use RAPTOR to design a suitable program to solve this problem.
  4. Problem Statement
  5. Assume the Scores array is parallel to the Players array (both arrays are below).
  6. Scores array
  7. Scores[0] = 198
  8. Scores[1] = 486
  9. Scores[2] = 651
  10. Scores[3] = 185
  11. Scores[4] = 216
  12. Scores[5] = 912
  13. Scores[6] = 173
  14. Scores[7] = 319
  15. Scores[8] = 846
  16. Scores[9] = 989
  17. Players Array
  18. Players[0] = “Joe”
  19. Players[1] = “Ann”
  20. Players[2] = “Marty”
  21. Players[3] = “Tim”
  22. Players[4] = “Rosy”
  23. Players[5] = “Jane”
  24. Players[6] = “Bob”
  25. Players[7] = “Lily”
  26. Players[8] = “Granny”
  27. Players[9] = “Liz”
  28. Write a looping program that presents the user with 3 options:
  29. 1) Sort Output by Players
  30. 2) Sort Output by Scores
  31. 3) Exit Program
  32. When the first option is selected, sort the Players array in alphabetical order, keeping the Scores array parallel. Add code that determines the highest and lowest scores in the list. Include code to display each player’s score and name in the sorted order. Below the sorted list display the highest and lowest scores in the list and the name of the player who received that score.
  33. Download: https://solutionzip.com/downloads/playerscore/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement