Write a program that inputs the 20 incomes into an array


Question: A survey organization telephones 20 homes and records the household income of each family surveyed.

Write a program that inputs the 20 incomes into an array and then sorts the array into decreasing order.

The program should display the subsequent statistics: the maximum income, the minimum income, the average in- come, and the median income.

The median of a set of sorted numbers is the middle number, if there is an odd number of numbers. If there is an even number of numbers, the median is the average of the two middle numbers.

Prepare a program to sorts the array into decreasing order.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a program that inputs the 20 incomes into an array
Reference No:- TGS0961969

Expected delivery within 24 Hours