3.7 Write a complete C program to analyse game score from a list of players. The program must consist of 2 dimensional array named player to store maximum of 10 player names and 1 dimensional array to store game score of each corresponding player. Both arrays must be initialized to 0 during declaration. Then, determine the followings: (i) Highest Score and name of the player (ii) Lowest Score and name of the player (iii) Number of player (iv) Average score (v) Suppose that player with score greater or equal to 1000 will receive Bonus Reward, display list of names and the game score that will be given bonus reward (vi) Find number of player in (v) The sample output of the program should be as follows: Enter Player Nickname : Violet : 1230 Enter Game Score Add another player? (Y-yes, N-no): Y Enter Player Nickname : ThunderStorm Enter Game Score : 2330 Add another player? (Y-yes, N-no) : Y Enter Player Nickname : KingCobra Enter Game Score : 1998 Add another player? (Y-yes, N-no) : Y Enter Player Nickname : Zelda : 998 Enter Game Score Add another player? (Y-yes, N-no) : Y Enter Player Nickname : Destroyer Enter Game Score 678 Add another player? (Y-yes, N-no): N Result : 2330 Score : 678 Highest Score Player: ThunderStorm Lowest Score Player Number of Player Average Score Score : Destroyer : 5 : 1446.80 List of Player With Bonus Reward Violet 1230 ThunderStorm 2330 KingCobra 1998 Total : 3 players

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section7.3: Declaring And Processing Two-dimensional Arrays
Problem 7E: (Electrical eng.) a. An engineer has constructed a two-dimensional array of real numbers with three...
icon
Related questions
Question
3.7
Write a complete C program to analyse game score from a list of players. The program must consist
of 2 dimensional array named player to store maximum of 10 player names and 1 dimensional array
to store game score of each corresponding player. Both arrays must be initialized to 0 during
declaration. Then, determine the followings:
(i)
Highest Score and name of the player
Lowest Score and name of the player
(ii)
(iii) Number of player
(iv) Average score
(v) Suppose that player with score greater or equal to 1000 will receive Bonus Reward,
display list of names and the game score that will be given bonus reward
(vi) Find number of player in (v)
The sample output of the program should be as follows:
Enter Player Nickname : Violet
: 1230
Enter Game Score
Add another player? (Y-yes, N-no) : Y
Enter Player Nickname : ThunderStorm
Enter Game Score
: 2330
Add another player? (Y-yes, N-no): Y
Enter Player Nickname : KingCobra
: 1998
Enter Game Score
Add another player? (Y-yes, N-no) : Y
Enter Player Nickname : Zelda
Enter Game Score
998
Add another player? (Y-yes, N-no) : Y
Enter Player Nickname : Destroyer
Enter Game Score
: 678
Add another player? (Y-yes, N-no): N
Result
Highest Score Player : ThunderStorm
Lowest Score Player
Score : 2330
: Destroyer
Score : 678
Number of Player
Average Score
: 5
: 1446.80
List of Player With Bonus Reward
Violet
1230
ThunderStorm 2330
KingCobra
1998
Total
: 3 players
Transcribed Image Text:3.7 Write a complete C program to analyse game score from a list of players. The program must consist of 2 dimensional array named player to store maximum of 10 player names and 1 dimensional array to store game score of each corresponding player. Both arrays must be initialized to 0 during declaration. Then, determine the followings: (i) Highest Score and name of the player Lowest Score and name of the player (ii) (iii) Number of player (iv) Average score (v) Suppose that player with score greater or equal to 1000 will receive Bonus Reward, display list of names and the game score that will be given bonus reward (vi) Find number of player in (v) The sample output of the program should be as follows: Enter Player Nickname : Violet : 1230 Enter Game Score Add another player? (Y-yes, N-no) : Y Enter Player Nickname : ThunderStorm Enter Game Score : 2330 Add another player? (Y-yes, N-no): Y Enter Player Nickname : KingCobra : 1998 Enter Game Score Add another player? (Y-yes, N-no) : Y Enter Player Nickname : Zelda Enter Game Score 998 Add another player? (Y-yes, N-no) : Y Enter Player Nickname : Destroyer Enter Game Score : 678 Add another player? (Y-yes, N-no): N Result Highest Score Player : ThunderStorm Lowest Score Player Score : 2330 : Destroyer Score : 678 Number of Player Average Score : 5 : 1446.80 List of Player With Bonus Reward Violet 1230 ThunderStorm 2330 KingCobra 1998 Total : 3 players
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning