#include #include using namespace std; /** Returns the positions of all values within a range. @param v a vector of floating-point numbers @param low the low end of the range @param high the high end of the range @return a vector of values from v in the given range */ vector find_all_between(vector v,double low, double high) { vector pos; for (int i = 0; i < v.size(); i++) {if (low <=v[i]&&v[i]<=high) pos.push_back(i); } return pos; } int main() { vector salaries(5); salaries[0]=35000.0; salaries[1]=63000.0; salaries[2]=48000.0; salaries[3]=78000.0; salaries[4]=51500.0; vector matches = find_all_between(salaries, 45000.0,65000.0); for (int j=0; j