Question: #include #include using namespace std; double getListAverage ( vector ) ; int main ( ) { double inputValue; vector valueList; double average; vector smallList; vector

#include
#include
using namespace std;
double getListAverage(vector);
int main(){
double inputValue;
vector valueList;
double average;
vector smallList;
vector largeList;
// Assume the user will enter a number, but make sure
// the number is greater than -1
// TODO: Capture user input.
{
cout << "Enter a Number Greater Than -1: ";
cin >> inputValue;
} while (inputValue <=-1);
valueList.push_back(inputValue);
// Get Average
average = getListAverage(valueList);
// Get small values
// TODO: Call function to get small values
// Get large values
// TODO: Call function to get large values
cout << endl << "Average: "<< average << endl;
// Print small values
cout << endl << "Small values: ";
// TODO: Print small values
cout << endl << "Large values: ";
// TODO: Print large values
cout << endl;
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!