#include <iostream> // include vector library using namespace std; //Function pr
ID: 3920046 • Letter: #
Question
#include <iostream>
// include vector library
using namespace std;
//Function prototype
double weightSummary(vector<double>);
int main() {
vector<double> list1; //Do NOT modify this vector declaration
//Do NOT modify these last two statements
double showResults = weightSummary(list1);
return 0;
}
//Function definition
double weightSummary(vector<double> v){
// Type your code here
}
Explanation / Answer
#include #include // include vector library using namespace std; //Function prototype double weightSummary(vector); int main() { vector list1; //Do NOT modify this vector declaration double w; for(int i = 0; i < 5; i++) { coutRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.