what is wrong with this code? I need the code to accept from 0 to 100 items Plea
ID: 666812 • Letter: W
Question
what is wrong with this code? I need the code to accept from 0 to 100 items Please don't answer with wrong codes #include<iostream> #include<iomanip> #include<string> using namespace std; int main() { const int size = 100; string item[size]; double price[size], subtotal = 0; cout << "Enter the item and price" << endl; for (int counter = 0; counter < size; counter++) { cout << "Item: " << (counter + 1); cin >> item[counter]; cout << "price" << (counter + 1); cin >> price[counter]; } cout << "Here are the items:" << endl; cout << fixed << showpoint << setprecision(2); for (int counter = 0; counter < size; counter++) { double subtotal = price[counter]; cout << "subtotal:" << subtotal << endl; } system("pause"); return 0; }