#include
using namespace std;
const int SIZE = 4;
struct part{
int modelnumber;
int partnumber;
float cost;
};
int main(){
int n;
part apart[SIZE];
for(n=0; n cout << endl;
cout << "Enter model number: ";
cin >> apart[n].modelnumber;
cout << "Enter part number: ";
cin >> apart[n].partnumber;
cout << "Enter cost: ";
cin >> apart[n].cost;
}
for(n=0; n cout << "Model " << apart[n].modelnumber;
cout << " Part " << apart[n].partnumber;
cout << " Cost " << apart[n].cost << endl;
}
return 0;
}