You are analyzing a manufacture process. you are working with managers who are responsable for buying components for the manufacturing process. each manager has a specific budget to buy a unique component each month; any one manager can only buy one type of component each month.compnent A has a cost of $2.25 per unit;component b $3.50;component c $1.25;component d$4.10.
To help them make purchase decisions you want to write a matlab program.
a) The program should ask the user three things:Which unit (A,B,C or D) he or she is responsable for buying,how many units the want to buy,and total budget for month.
b)Program must calculate total cost of intis based on managers input. in addition the program must check to see if the total costs exceeds the managers budget.
c.The program must output the total number of units, and the total costs. if the total cost of the units is less than the amount budgeted, the output should read "it would cost $xx.xx to purchase N units of component C."
if the total cost of the units exceeds the budget, the output should read "you can only purchase N units of component C for a budget of $xx.xx.