Calculate median value of the numbers stored in each array

Assignment Help JAVA Programming
Reference no: EM131971159

Intro to OOP Homework -

Purpose - Practice using random numbers and arrays in a Java program.

Instructions - Create a Java program that performs the following tasks:

1. Create two arrays to store 24 and 25 random integers, respectively.

2. Generate integers using the java.util.Random class and store the numbers in both arrays.

A. Use a constant seed value to ensure the same results occur every time.

B. The range of the random numbers should be between 0 and 1000.

C. Both arrays will contain the exact same numbers (one less for the size 24 array).

3. Calculate the median value of the numbers stored in each array.

A. Sort the array.

B. Determine the middle value of the array.

1. Odd number of values, locate the middle value.

2. Even number of values, take the average of the middle two values.

4. Display the median value and the numbers store in both arrays (see Example Output section).

A. Display the array values using 10 columns.

Notes

Display homework number and programmer's name at top of program output.

Ensure source code comments conform to class commenting standards.

Ensure program development conforms to class programming standards.

Submit the project source code as a single *.java file.

Submit a text capture of the compiler results as a *.txt file.

Submit a text capture of the program output as a *.txt file.

Reference no: EM131971159

Questions Cloud

Explain the purpose of a cash flow statement : In a two- to three-page paper (not including the title and reference pages), explain the purpose of a cash flow statement.
Compute earnings per share before the expansion : The Lopez-Portillo Company has $12.3 million in assets, 70 percent financed by debt and 30 percent financed by common stock.
Medications the patient takes is atenolol and aspirin : He denies tobacco and illicit drug use and states he only drinks beer occasionally. The only medications the patient takes is atenolol and aspirin.
Discuss participation rate of women in the workforce : From the scenario and the first e-Activity, predict two (2) changes that will occur in the next five (5) years in relation to the 60 percent participation rate.
Calculate median value of the numbers stored in each array : COP2551 Intro to OOP Homework - Calculate the median value of the numbers stored in each array. Determine the middle value of the array
What is the price of each bond today : If interest rates don't change, what should the price of these bonds be in 1, 3, 8, 12 and 13 years from now?
Nursing professional development and attainment of career : How does best practices to improve patient satisfaction scores contributes to nursing professional development and attainment of career goals.
Briefly discuss three important nursing considerations : Briefly discuss three important nursing considerations when giving nursing care to clients who have problems with infection.
How will you determine if there is an issue you should be : When looking at the income statement for your firm, you notice that your Cost of Goods Sold was $1M in 2012, $1.2M in 2013 and $2M in 2014.

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