In order to accomplish this work as quickly as possible, we will not use keyboar
ID: 3528052 • Letter: I
Question
In order to accomplish this work as quickly as possible, we will not use keyboard or file input. Instead, you may assign the 10 values to your initial arrays in the programs. Using initializer lists to load them with the data types expected for each exercise. Please use methods to do each task. Pass your arrays to the method to complete each task.
Write a program that takes 10 floating-point numbers listed most often. The program displays the average of the numbers followed by all of the numbers that are greater than the average. As part of your design, write a method that takes an array of doubles as a parameter and returns the average of the data in the array.
Explanation / Answer
main() float array[10]={1.0,2.2,5.3,4.6,2.4,8.9,7.3,9.6.5.4,5.9},average,sum; int i,j; double int array[10]; for(i=0;iRelated Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.