//************************************************************ // Solutions to Homework 0 //************************************************************ // lab1c.cpp //************************************************************ // Modify the program so the it contains and additional // vector pList to store prices (as double numbers) // Read in as many prices as you have items and then // print them out together #include #include #include using namespace std; int main() { int n; cout << "How long is the list? "; cin >> n; vector sList(n); for (int i=0; i < n; i++) { cout << "Enter next string: "; cin >> sList[i]; } vector pList(n); for (int i=0; i < n; i++) { cout << "Enter next price: "; cin >> pList[i]; } for (int i=0; i < n; i++) { cout << "Item: " << sList[i] << " Price: " << pList[i] << "\n"; } }