

int comapany[6]
to create 106 variables. They you probably want to declare another array of id numbers for the companies int id[6]
.






Method: 1. Define global variable, int total_prod to hold the total number of products for a company 2. define the function void compute_total() that uses a loop to read the number of the products in all warehouses for one company, computer the total number of products and store it into the global variable total_prod. 3. Define the function void new_order() that determines if a new order need to be placed as follows: if the total number of products (in the global variable total_prod) is less than 100, it prints the message “place a new order” 4. Your function main does the following in a loop:  read a company ID number  call function compute_total() to read the number of the product in all warehouses for that company, and to compute their sum  print the total number of the product for that company with an appropriate message  call the function new_order() to determine if a new order need to be placed. 