Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

//This program is going to show the sum, average and print outputs in order. #in

ID: 3759428 • Letter: #

Question

//This program is going to show the sum, average and print outputs in order.
#include <iostream>
#include <string>
using namespace std;

int main()
{
   int i;
   int Array[10];

   for (i = 0; i < 10, i++)
   {
       cin >> Array[i];
   }

   highest = Array[0];
   lowest = Array[0];

   for (i = 1; i < 10; i++)
   {
       if (Array[i] > highest) highest = Array[i];
       if (Array[i] < lowest) lowest = Array[i];
   }

   system("pause");
   return 0;
}

Modify this program to meet these requirements:

Write a program that lets the user enter 10 values into an array. The program should then display the largest, the smallest, the sum, and the average values.

Output should print:

The values are as following:

The smallest value is:

The highest value is:

The sum is:

The average is:

The values printed should be sorted from least to greatest.

~Please show a screenshot of the working solution

Explanation / Answer

OUTPUT: