//Inventory Control #include #include #include using namespace std; void getItem(string &prod, int &quan, double &price); //add one item from keyboard void printList(string product[],int quantity[], double price[], int count); void main (void) //main has 3 arrays and count that are passed to other functions { string product[20]={"Widget","Dodad","Thingamajig", "Dohicky"}; int quantity[20] = {20, 100, 12, 40}; double price[20] = {12.95, 7.50, 1.25, 6.00}; getItem(product[4], quantity[4], price[4]); int count=5; printList(product,quantity,price,count); } //main void getItem(string &prod, int &quan, double &price) //add one item from keyboard { cout<<"Enter name of product:"; getline(cin,prod); cout<<"Enter quantity:"; cin>>quan; cout<<"Enter price:"; cin>>price; } //getItem void printList(string product[],int quantity[], double price[], int count) //print list of all items { cout<<"PRODUCT\tQUANTITY\tPRICE\n"; for(int i=0;i