Can someone please write an application of fillioning question in C++ and please
ID: 3922212 • Letter: C
Question
Can someone please write an application of fillioning question in C++ and please use comments to explain line of codes used so I can better understand.
Write a C++ application that asks the user to enter 10 numbers. The program then stores those numbers. The program should display the numbers sorted from low to high, from high to low, the Mean , Median, and Mode.
Do this using both sort examples
Explanation / Answer
#include #include #include #include using namespace std; int main() { double value, sum; double average, minimum=(int)INFINITY, maximum=-(int)INFINITY, median; mapmodes; vectordata; int count,mxmode=0; // initialise sum = 0.0; count = 0; cout > value) { // process value sum += value; count++; if (value > maximum) maximum = value; else if (valueRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.