Insert in order functionality to your statistics program

Assignment Help JAVA Programming
Reference no: EM13705111

Program:

You are to add mean, standard deviation, and insert in order functionality to your statistics list program.

Insert in order means that you will add a function called find_index that will locate the place in the array that a new value should be inserted.

It will then call insert_at, which will move the appropriate, existing elements of the array so that the new element may be inserted in its proper index. So insert_at will be called by find_index, which will be called by insert_in_order.

Insert_in_order reads in each new value and calls find_index with it, setting off a chain as described above that ends with each element inserted at the right index so that the array is assembled in order.

So, selection_sort can be removed from your program.

You will also modify your program to accept input from an input file and print a report to an output file.

These files are to be named by the user at runtime. The output report is to add the array values, in whatever order they are in, the mean, median, and standard deviation in a neat, tabular format of your choice.

I will supply a list of double values file that you will use to test your program, so you require not turn in an input or output file.

Name your .cpp file firstName_LastName_statListTwo.cpp and submit it to moodle by the assigned date.

Reference no: EM13705111

Questions Cloud

How many transactions could the server process : How many transactions/second could the server process if it had 2 threads?
Explain how much energy as heat is evolved : Problem- Benzene, C6H6, is an organic liquid that freezes at 5.5 C. How much energy as heat is evolved when 15.5 g of benzene freezes at 5.5 C? The enthalpy of fusion is 9.95 kJ/mol. 1.97 Joules 1,977 Joules 54 kJ 230 kJ
Distributed file service : Use your own word to describe if five clients accessed the same file in a Distributed File Service how many copies of the file may exist on the network? Show list where the copies are.
What temperature is the vapor pressure equal to hg : Problem- Diethyl ether has an enthalpy of vaporization of 29.0 kJ/mol. The compound has a vapor pressure of 524 mm Hg at 25 °C. At what temperature is the vapor pressure equal to 115 mm Hg? -17 °C -9 °C 9 °C 25 °C
Insert in order functionality to your statistics program : You are to add mean, standard deviation, and insert in order functionality to your statistics list program.
What is the identity of the element : Problem- An element crystallizes in a face-centered cubic lattice. If the length of an edge of the unit cell is 0.408 nm, and the density of the element is 19.3 g/cm3, what is the identity of the element?
Compute and print to the screen the average number : Compute and print to the screen the average number of hamburgers that were ate per day ( which may have a fractional component).
Compute the ksp for agi if it 100% dissociated in water : Problem- Compute the Ksp for AgI if it 100% dissociated in water, and if its solubility is equal to 1.9 x 10-5 M
What is the oh- concentration in the solution : Problem- What is the concentration of H+ in 0.00065 M HNO3. What is the pH of the solution. What is the OH- concentration in the solution

Reviews

Write a Review

JAVA Programming Questions & Answers

  Accepts a string as its parameter and returns an integer

Write a method in java named secondHalfLetters that accepts a string as its parameter and returns an integer representing how many of letters in the string come from the second half of the alphabet

  Declare a string variable named empty

Declare a string variable named empty, and initialize it to the empty string.

  Rewrite this code in order to ask the user for input

rewrite this code in order to ask the user for input and then coverth it from infex to postfix ,, so i want to put a Scanner and this ask the user for input .. how to do it ?

  Prepare a polynomial-time algorithm

Write a polynomial-time algorithm that, given an initial configuration (P_1, P_2, ..., P_k), decides if it is a winning configuration - Prepare a polynomial-time algorithm that decides if it is a winning configuration.

  Ask the user to enter a positive non-zero integer value.

Write a program which aske the user to Enter a positve non-zero integer value. if the value enterd zero or negative print as error message and end the program; otherwise, use the integer to call a method displayPattern(n) which must display the follo..

  Display the program output of the collision results

According to my lecturer, I need the tutor to display the 'program output' of the collision results implemented by BirthdayAttack.java in a output.txt file. Can the tutor do this?

  Part 1product maintenanceyoull create a series of pages

part 1product maintenanceyoull create a series of pages that allow you to add update or delete a product thats

  Generate and manipulate music and images

Arrays are a fundamental and versatile tool for representing data of all shapes and sizes In this assignment, you'll see how arrays can be applied to generate and manipulate music and images.

  Write java applet for costco gas station

Write a java applet for costco gas station. The applet will first ask you whether you are a costco customer, then the grade of gas you want to use: grade 87, 89, or 91.

  Determine the average amount of time people spend waiting

Determine the average amount of time people spend waiting for tables -  The fancy new French restaurant La Food is very popular for its authentic cuisine

  Create four classes

Create four classes: Account.java, Checking.java, Savings.java, and AccountArray.java.

  A java program that reads the records

A java program that reads the records from the golf.dat file and displays them. It also displays the name of the player with the best (lowest) golf score.

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