Determine statistics for a video game tournament

Assignment Help JAVA Programming
Reference no: EM13702233

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.

Reference no: EM13702233

Questions Cloud

Hcl is slowly added to a solution that is 0.250m in pb2+ : Question- HCl is slowly added to a solution that is 0.250M in Pb2+ and 0.00150M in ag+. Which precipitate forms first,PbCl2 or AgCl? Show your calculation. At what Cl- ion concentration will the precipitate first. Appear? Ksp for PbCl2 is 1.6*10^-..
Design a class named magazinesubscription : Design a class named MagazineSubscription that has fields for a subscriber's name, the magazine name, and number of months remaining in the subscription.
How many grams of silver sulfate can be dissolved in 450 : Question- How many grams of silver sulfate can be dissolved in 450. ml of .200M sodium sulfate solution? (ksp for Ag2SO4 is 1.2* 10^-5)
What would like to web page to do : What would like to web page to do? Who is my audience and What do I want it to look like? How simple do I want it? How complex?
Determine statistics for a video game tournament : Write a program to determine statistics for a video game tournament and write a program to alphabetize a list of last names. The user will input an undetermined number of last names.
Write the algorithm and find out the time complexity : Write the algorithm and find out the time complexity for the algorithm (in terms of n and m). Note that given two locations (x1, y1) and (x2, y2), distance between them can be calculated by the subsequent formula: ? (x2 - x1)2 + (y2 - y1)2.
Create a simple command line program : Create a simple command line program that simulates the rolling of a pair of six sided dice a user given number of times. The number of times to roll the pair of dice should be read as input from the argv array on the command line.
Construct the arraylisttype class application : Construct the Student Class Student.h and Student.cpp student class should add a Student.h header file for your class definitions and a Student.cpp implementation file comprised of first name, last name, ram id
Importance of monitoring system performance : Describe in your own words the purpose of all user interfaces, whether command or menu driven and explain the importance of monitoring system performance and why Windows make this information available to the user.

Reviews

Write a Review

JAVA Programming Questions & Answers

  When the user presses a button

When the user presses a button, get the text from text field. Now extract the words from the text one at a time and find the largest word of length 4 or more. Let's call this largest word X for now. In response, create a question based on the length ..

  Reverse the array, and find the largest element

find the max block of an array by splitting it into three parts: left, middle, right. And then reverse the array, and find the largest element.

  1 create a recursive factorial program that prompts the

1. create a recursive factorial program that prompts the user for an integer n and writes out a series of equations

  Test plan for both unit testing and integration testing

Do a test plan for both unit testing and integration testing, justification why you need this test creating the test case for each individual test must use java language in netbeans IDE to perform each test, screen capture one example to run the ..

  Cognitive-based approaches to understanding motivation

Compare and contrast the need-based and cognitive-based approaches to understanding motivation?

  What are the benefits of documenting

What are the benefits of documenting our programs in Java?

  Write a class called rationalnumber

Write a class called RationalNumber that represents a fraction with an integer numerator and denominator.

  Display a welcome message to your user

Write a one screen description of your initial reactions to Java. Reactions may be both positive and negative. At the end of this module you will be asked to write a reply to these initial reactions.

  Create a data set with 100 integer values.

Create a data set with 100 integer values. Create a program that uses the division method of hashing to store the data values into hash tables with table sizes of 7,,51 and 151. Use the linear probing method of collision resolution. Print out the ..

  Comparator that compares point objects by their distance

write a comparator that compares point objects by their distance from the origin of (0,0). points that are closer to the origin are considered to come before those which are further from the origin

  Design a program that extends the definition of the class

Design a program that extends the definition of the class JFrame to display a window on the screen. Name your class PropertyTax1, title your window "Calculation of Property Taxes," set the window's width to 400 pixels and height to 300 pixels, and te..

  Create javascript program to find gross pay for employees

Create JavaScript program which will find out the gross pay for each of three employees. Company pays "straight time" for first 40 hours worked by each employee and pays "time and a half".

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd