Design-of-automated-processing-and-control-systems

The input is the number n of products and the cost of m materials. It is also known how many materials are required to manufacture products, respectively. It is necessary to calculate how much materials are required, the cost of the product and the total costs.