Display the median of the grades

Assignment Help Computer Engineering
Reference no: EM132194486

Question :

Write a C# console program that asks the user how many grades there are, inputs the grades, and displays the median of those grades.

Your program must:

1. Store the grades in an array.

2. Handle up to 20 grades

3. Sorts the array of grades.

4. Have a method that takes a sorted array of grades. It returns the median of those grades.

5. Use at least one reference or output parameter

Sample Output

Please enter the number of grades: 6

Please enter grade #1: 85.2

Please enter grade #2: 92.3

Please enter grade #3: 78.0

Please enter grade #4: 51.5

Please enter grade #5: 91.6

Please enter grade #6: 87.0

The median grade is 86.1

Reference no: EM132194486

Questions Cloud

Positive and negative factors of using social media : What are positive and negative factors of using social media in hospitals?
What is the new range : In the absence of air resistance, a projectile is launched from and returns to ground level. It follows a trajectory similar to that shown in the figure.
Describe the employer mandate : Describe the employer mandate. What unintended behavioral change (by employers) do you think this mandate will cause?
What is the magnitude of the squirrel displacement : Two trees have perfectly straight trunks and are both growing perpendicular to the flat horizontal ground beneath them. The sides of the trunks that face.
Display the median of the grades : Write a C# console program that asks the user how many grades there are, inputs the grades, and displays the median of those grades.
Find the current through a loop : Find the current through a loop needed to create a maximum torque of 9.4 N · m. The loop has 43 square turns that are 19.1 cm on a side and is in a uniform.
Poor communication and poor management development : How to complete an implementation schedule to improve team work, poor communication and poor management development?
Calculate the de broglie wavelength of the bullet traveling : A certain rifle bullet has a mass of 6.45 g. Calculate the de Broglie wavelength of the bullet traveling at 1169 miles per hour.
Write a c function which prints a frequency histogram : Write a C function which prints a frequency histogram of words in a given sentence.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Describe how logical and physical representations

explain how logical and physical representations of a To-Be system will differ.

  Development stage metrics should be used to track customer

Metrics can be used to measure the whole development process along with each stage. In the development stage metrics should be used to track customer

  Explain the operation of the modified register

One input of the NAND gate receives the clock pulses from the clock-pulse generator. The other input of the NAND gate provides a parallel-load control. Explain the operation of the modified register.

  What are strategies to use in testing

What are strategies to use in testing? How do you prove to the stakeholders that the testing was successful? What do you do with testing data?

  How zyng soc can be used to accomplish a high-level design

List at least 3 advantage of implementing selected portions of a complex design in software. Explain how Zyng SoC can be used to accomplish a high-level design.

  Create a windows application that has the functionality

Create a windows application that has the functionality of a calculator but works with decimal values. Because division by zero is not thrown by the CLR when the operands are nonintegral.

  Which layout would be the best one to use and why

Suppose you want to implement a Sudoku game that includes nine rows and nine columns of squares. Which layout would be the best one to use and why?

  Solve the given functions with the help of logic gates

Implement the simplified the function from problem using AND, OR and NOT gates.

  What should be included in a package diagram

What should be included in a package diagram with dependency relationships? Create that package diagram.

  Developing ways to support every applications

List some of the ways which we may guarantee that the majority of our target audience may play our applications.

  Write a program to iteratively compute the sum of all int

Write a program to iteratively compute the sum of all integers from $a0 to $a1. Print an error message if $a1 is not greater than $a0.

  What is the configuration one move later

Let G be the CFG with productions S ? S + T | T T ? [S] |. If the configuration at some point is (q0, +[a]], T [Z0), what is the configuration one move later?

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