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

  Create a recursive factorial program

Assignment 1: Create a recursive factorial program that prompts the user for an integer  N  and writes out a series of equations representing the calculation of  N !. For example, if the input is 4, the output could be:

  Implement a shopping cart class with user interface

project will be to implement a shopping cart class with user interface (UI) that contains main() in Net Beans. The UI class will be used to perform user input/output and to invoke the appropriate methods of shopping cart class. When your program star..

  Write a script that prints out the full pathnames

Write a script that prints out the full pathnames of your files that are over a specified size.  The size should beread as a command line argument to the script.

  Write an application bmicalc

Write an application (BMICalc) that reads the user's weight in poinds and height in inches, then calculates the Body Mass Index.

  Java is considered to be safe from buffer overflows

Java is considered to be safe from buffer overflows. Does that make it more appropriate to use as a s development language when security is concerned? Be sure and weight all if the risks involved in product development, not just the security aspec..

  A regular polygon is an n-sided polygon

A regular polygon is an n-sided polygon in which all sides are of the same length and all angles have the same degree(i.e the polygon is both equilateral and equiangular).

  Achieving simplicity and merely being simplistic

What is the difference between achieving simplicity and merely being simplistic?

  Develop a java program

Develop a Java program which, given the width, length and depth (in metres), of a swimming pool, determines and outputs.

  Develop the implementation file student.cpp

Required to implement the class to develop the implementation file Student.cpp that conforms to the following specifications

  Create an application for an animal-fur trimming service

create an application for an animal-fur trimming service. the business is open 15 weeks of the year from april through

  Write jvm program which accepts rpn expression

Write down the IJVM program which accepts RPN expression, with each operand and operator entered line by line. As each number (operand) is entered, push it on stack.

  Balancing binary search trees

Balancing Binary Search Trees,  Consider the file BST.java (a link to this file is provided below for downloading purposes) which defines a generic Binary Search Tree class.

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