3J restaurant offers promo for regular customers of their catering services.The cost of food to be served is 200 perheadfor30 personsor less,180 per headfor 31 to 60 persons ,and15 per head for 61to 80 persons . For 80 or more persons ,the cost is at 130 per head .Represent the total cost as pice wise function of the number of attendees in the event.

start with

f(x) = 200x for 0 <=x <=30
f(x) = 180x for 30 < x <= 60
and so on

and next time, proofread what you have written. Mighty sloppy, I must say.