Design and implement a java program

Assignment Help Basic Computer Science
Reference no: EM13208760

Design and implement a Java program that will read a file containing numbers and compute the following statistics: the range (low, high), the average and the median (middle number). Notes: - the first number in the input file will be the number of numbers in the file - the maximum number of numbers in the file will be 1000 - to find the median you must first sort the numbers - algorithms/code for inputting/outputting arrays, sorting arrays were covered in class and are in the text Your program must contain at least the following methods: - main - for driving the other methods - getdata - a method for inputing all data - printdata - a method for printing all data - sortdata - a method for sorting all data.

Reference no: EM13208760

Questions Cloud

How often should the extraction process be performed : How often should the extraction process be performed? Should it be static extract or an incremental extract?
What is the velocity of money in the economy : Suppose that the money demand function takes the form (M/P)^d = L(i,Y) = Y/(5i) a. If output grows at rate g, at what rate will the demand for real balances grow (assuming constant nominal interest rates) b. What is the velocity of money in this econ..
Construct a 3-bit counter using three d flip-flops : Construct a 3-bit counter using three D flip-flops and a selection of gates. The inputs should consist of a signal that resets the counter to 0, called reset, and a signal to increment the counter, called inc.
Convert the star schema to a snowflake schema : Using these principals, convert the star schema to a snowflake schema. What impact (if any) does this have on the size of the fact table for this problem?
Design and implement a java program : Design and implement a Java program that will read a file containing numbers and compute the following statistics: the range (low, high), the average and the median (middle number).
Explain the disadvantages of preventing the federal budget : What are the advantages and disadvantages of preventing the federal budget from ever being in deficit. Explain why the high employment deficit or surplus might differ from the actual budget deficit or surplus.
What strategic advantage can continental derive : What strategic advantage can Continental derive from the real-time system as opposed to a traditional information system?
Design and implement a class that allows a teacher to track : Design and implement a class that allows a teacher to track the grades in a single course. Include methods that calculate the average grade, the highest grade, and the lowest grade. I use C# and visual studio 2012
Depict a balanced redox reaction for the process : Gold miners then react the basic aqueous product solution from the above equation with Zn dust to get gold metal. Write a balanced redox reaction for this process.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Report on explaining how to recover corrupt file

When you try to open the file in an image viewer, a message is displayed indicating that the file is corrupt. Write a 2-3 page report explaining how to recover the file, orkty.zip, for further investigation.

  What is the goal of information systems planning?

What is the goal of information systems planning? What are the steps of the traditional systems development life cycle? What is prototyping? What is an RFP? What is typically included in one? How is it used?

  Receiver r is conducting an auction

Assume the receiver R is conducting an auction in which two bidders each encrypt their bids using the scheme above and send them to R.

  Creating cut-over plan for alternate processing site

Create cut-over plan for alternate processing site based on given below. Consider LAN for small 100-person business, Pixel Inc. Business occupies one floor in an office building.

  There exists finite set of coin types-coin-changing problem

Show that if an ≠ 1, then there exists a finite set of coin types and a C for which there is no solution to the coin-changing problem. Show that there is always a solution when an = 1.

  Write the code for invoking a method

Write the code for invoking a method named sendSignal . There are no arguments for this method. Assume that sendSignal is defined in the same class that calls it.

  How much of program-s time slice can be spent waiting

Desired data to rotate around to the read/write head, how much of a program's time slice can be spent waiting for a read operation from a disk to take place?

  Signed-magnitude representations binary numbers in computers

Why do we require signed-and-magnitude representations of binary numbers in computers? Represent decimal values: -37, -54, and 56 in binary by using signed-and magnitude representation.

  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.

  Specific design criteria

Give two languages that are in direct conflict with each other. Provide examples of these conflicts as either programming examples (features allowed or not allowed) or program model, (environment). Compare and contrast the terms readability and write..

  Determining contents of the register a

The hexadecimal form of a 3-byte instruction for SIC/XE is 010030. The opcode in the instruction is LDA. Indicate the contents of the register A in decimal.

  Explain checksum detect all errors caused by odd number

Let the 32-bit hash function defined as concatenation of two 16-bit functions: XOR and RXOR. Will this checksum detect all errors caused by odd number of error bits? Describe.

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