Produces a simple formatted report

Assignment Help JAVA Programming
Reference no: EM13166761

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 and
        // return the ArrayList to the calling program.
        private static List readNextSeries(Scanner inScanner) {
                // Fill in the body
        }
        
        // Given a List of integers, compute the median of the list and return it to
        // the calling program.
        private static int getMedian(List inList) {
                // Fill in the body
        }
        
        // Given a List of integers, compute the average of the list and return it to
        // the calling program.
        private static int getAverage(List inList) {
                // Fill in the body
        }
        

}

Reference no: EM13166761

Questions Cloud

Explain what is the ph at the equivalence point : What is the pH at the equivalence point when 100.00 mL of a 0.200 M solution of acetic acid (CH3COOH) is titrated with 0.10 M NaOH to its end point?
Evaluate the recommendation of the vice president : Evaluate the recommendation of the Vice president (Treating Ad as cost of production and overhead). The effect on financial statements.
State hemoglobin is protein that transports through blood : Hemoglobin is the protein that transports O2 through the blood from the lungs to the rest of the body. In doing so, each molecule of hemoglobin combines with four molecules
Determine the breakeven point in units and dollars : Prepare a contribution margin income statement separating all variable and fixed costs into their own categories and determine the breakeven point in units and dollars. Also, determine the number of units and dollars that need to be sold to make a ..
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)
Compute the predetermined overhead rate : Compute the predetermined overhead rate and prepare the entry to apply the overhead for the year.
Stae the reaction occurs and the temperature returns : After the reaction occurs and the temperature returns to 22°C, what is the pressure inside the flask? (Neglect the volume of the solid product.)
Financial year of triceratops toys : Discuss whether Triceratops Toys Manufacturing Limited's profits are subject to Hong Kong profits tax for the year of assessment 2012/13. The financial year of Triceratops Toys Manufacturing Limited ends on 31 March each year.
Currently the atm is idle : Currently the ATM is idle. Find the probabilities that, in 3 minutes, the ATM will be idle; will be serving one customer with no one in the queue; will be serving one customer with one customer waiting in the queue

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. 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!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic 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