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

  Solve the currently very un-pc cigarette smokers problem

Write solution to solve the currently very un-PC"cigarette smokers problem" in java using Java threads, and monitors (using the "synchronized" keyword) (If it bothers your PC sensibilities, think of it at the Pot-smokers problem and then it is all pr..

  In this game we have a number of players interacting in a

in this game we have a number of players interacting in a simple way. the game takes place on a virtual

  The frantic pipe layer game

Design the Frantic Pipe Layer game

  Constructor that accepts a file name as its argument

Write a class with a constructor that accepts a file name as its argument. Assume the file contains a series of numbers, each written on a separate line. The class should read the contents of the file into an array, and then displays the following..

  Why do regulators mandate the use of spread spectrum

Why do regulators mandate the use of spread spectrum and what are some spread spectrum transmission options?

  Accepts a scanner representing an input file

Write a method in JAVA called stripHtmlTags that accepts a Scanner representing an input file containing an HTML web page as its parameter, then reads that file and prints the file's text with all HTML tags removed. A tag is any text between the c..

  What is the greatest common divisor

What is the greatest common divisor of the Fibonacci numbers f100 and f101 by Euclid algorithm.

  Write a program called drawing in the form of a public class

Write a program called Drawing in the form of a public class Drawing that extends a Java JFrame and provides the following features.

  Question 1a give explanation why it is significant to

question 1a give explanation why it is significant to follow web engineering principles taking into account how the web

  What is the paintcomponent method how is it used in java

q1. what is the paintcomponent method? how is it used in java graphics? how does a program intentionally cause the

  Implement one class called parking meter

Implement one class called parking meter, that is a simple model of a coin operated parking meter

  Create a panel with borderlayout

Create a panel with BorderLayout. Add a button labeled "OK" to the south side of the panel - given the program, show the values of the array

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