Write a java program that produces a simple formatted report

Assignment Help Basic Computer Science
Reference no: EM13322296

For this lab you will write a Java program that produces a simple formatted report. The program will prompt the user to enter a file name. This file must contain information in a specific format (detailed below). Each "block" of the file contains information for one player in a competition -- the name of the player followed by a number of different scores that that player achieved. The program should find each player's average score, median score and best and worst scores and display them in a line on the final summary report. The program should also determine which player has the highest average score and which player has the lowest average score. (HINT: Consider storing information in ArrayLists to make the final summaries easier to produce).

For this assignment you should start with the following "skeleton" of Java code. Import this into your Eclipse workspace and fill in the methods as directed. The skeleton provided for this assignment is much more "skeletal" than previous assignments. For this assignment you MUST add at least two extra methods beyond the methods defined in the skeleton. These methods must not be trivial one or two line methods, but a real breakdown of the code. Consider adding methods to write the formatted report, or helper methods for reading the input file or computing necessary values. Feel free to add any methods you find useful, and make sure that you add comments indicating what they do following the form of the rest of the comments in the code.

Project11.java
*
* A program that reads in a text file that uses a specific input format and uses it to
* produce a formatted report for output.
*
* See the write-up for Homework Lab 13 for more details.
*
* This skeleton is more "skeletal" than previous labs. You MUST break your code up into
* more methods than what you see here. Consider methods to display the formatted report
* as well as more methods to compute values for the report.
*
* @author ENTER YOUR NAME HERE
*
*/
package osu.cse1223;
import java.io.*;
import java.util.*;

public class Project11 {

public static void main(String[] args) {
// Fill in the body
}

// Given a Scanner as input read in a list of integers one at a time until a negative
// value is read from the Scanner. Store these integers in an ArrayList<Integer> and
// return the ArrayList<Integer> to the calling program.
private static List<Integer> readNextSeries(Scanner inScanner) {
// Fill in the body
}

// Given a List<Integer> of integers, compute the median of the list and return it to
// the calling program.
private static int getMedian(List<Integer> inList) {
// Fill in the body
}

// Given a List<Integer> of integers, compute the average of the list and return it to
// the calling program.
private static int getAverage(List<Integer> inList) {
// Fill in the body
}

}

Reference no: EM13322296

Questions Cloud

How many hits does this address sequence exhibit : Simulate a random replacement policy by flipping a coin. For example, "heads means to evict the first block in a set and "tails" means to evict the second block in a set. How many hits does this address sequence exhibit?
Marine archaeology and treasure hunting : Fred Fisher is a licensed scuba diver who lives in Key Largo. He is employed full-time as an engineer. Five years ago he had been employed as a professional diver for a salvage company. While working for the salvage company, he became interest..
What is the voltage between the plates of the capacitor : We have an RC circuit with a 1.0 mega Faraday capacitor, a 20 kilo-ohms resistor, amd a 9.0 volt battery. what is the voltage between the plates of the capacitor
Find the average power dissipated in the resistor : A resistor with R = 2.4 k? is connected to an AC generator that operates at 60 Hz with an amplitude of 41 V. Find the average power dissipated in the resistor
Write a java program that produces a simple formatted report : For this lab you will write a Java program that produces a simple formatted report. The program will prompt the user to enter a file name. This file must contain information in a specific format (detailed below).
Explain what is the chemical formula for the salt : what is the chemical formula for this salt? B- a brown colored salt contains a cation from group 3, it has no reaction with concentrated H2SO4 and produces a soluble product with acidic AgNO3 and acidic BaCl2, this salt is not water soluble. What ..
Calculate the magnification factor : A right side view automobile mirror with a radius of curvature of 15.0 m reflects an object at a distance of 10.0 m from the mirror. calculate the magnification factor
At what angle to the normal does the light leave the water : A diver in a swimming pool shines a flashlight up from below the water%u2019s surface at an angle of 30.0 degrees from the normal. at what angle to the normal does the light leave the water
Construct a diagram to map the arguments : Construct a diagram to map the arguments about a moral claim that you have identified and write an essay, which maps closely to the diagram that you constructed in Step 1.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Select three imaging tools and explain their functions

Choose three imaging tools and describe their functions, including those of their subtools. Provide examples of how these tools might be used to enhance your professional or personal photos.

  Electronic communications privacy act ecpa

Electronic Communications Privacy Act (ECPA)

  Describe a dbms and its functions

Describe a DBMS and its functions. Name some of the popular DBMS software? You should search the Internet for the updated DBMS technology.

  The basic solutions of the simplex method.

Solve the following problem by inspection, and justify the method of solution in terms of the basic solutions of the simplex method.

  Evaluate for risk management purposes

Choose three information assets that a typical organization has and evaluate for risk management purposes which vulnerability should be evaluated for additional controls first?

  The computerization of health records

A health care issue that has been in the news lately is the computerization of health records. This probability is being approached cautiously because of sensitive privacy and security concerns, among others.

  How to successful interface designer

how to successful interface designer

  Validate a field for minimum length

Write a JavaScript program that performs the following actions (in sequence, step-by-step):

  Explain hacktivism includes cracking for higher purpose

And "hacktivism" includes cracking for "higher purpose". Is it feasible to crack systems and still be ethical? Support the position.

  Formula gives the distance between two points (

formula gives the distance between two points (x1, y1) and (x2, y2) in the Cartesian plane:

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs, Flash RAM, and solid-state drives (SSD)

  Write the definition of the function min and a program

write the definition of the function min and a program to test this function. Add the function max to the class arrayListType to return the largest element of the list. Also, write the definition of the function max and a program to test this func..

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