Write a program to determine statistics for a video game


Answer the following questions and also justify your answers with appropriate examples

Question 1: Write a program to determine statistics for a video game tournament.

The user will input names and scores of all tournament players. The program will calculate the average score and display the players who scored below average. 

You have to implement these functions:

  • Main(): Declares variables for the number of players and average score, and two arrays of size 100: one to store player names and the other to store their respective scores. Calls the following functions in sequence, passing necessary parameters by reference:

- InputData( ): Gets player names and scores from the user and stores them into the two arrays for an unknown number of players up to 100. 

- DisplayPlayerData(): Displays each player's name and score. 

- CalculateAverageScore( ): Calculates the average score and returns it by value. 

- DisplayBelowAverage( ): Displays the names and scores of players who scored below average

Question 2: Write a program to alphabetize a list of last names. The user will input an undetermined number of last names.

The program will display the number of names entered and alphabetized lists of the names in ascending (A-Z) and descending (Z-A) order. 

Your program will store the names in an ArrayList object. It will use various ArrayList properties and methods to implement the program needs.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Write a program to determine statistics for a video game
Reference No:- TGS0955513

Expected delivery within 24 Hours