document.write( "Question 1119075: The cost of hiring a catering service to serve food for a party is 150 pesos per head for 20 persons or less,130 pesos per head for 21 to 50 persons and
\n" ); document.write( "110 pesos per head for 51 to 100 persons.For 101 or more persons,the cost is at 100 pesos per head.Represent the total cost as a piecewise function of the number or attendances of the party.
\n" ); document.write( "

Algebra.Com's Answer #734649 by Theo(13342)\"\" \"About 
You can put this solution on YOUR website!
cost is:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "150 pesos per head for 20 persons or less.
\n" ); document.write( "130 pesos for 21 to 50 persons.
\n" ); document.write( "110 pesos per head for 51 to 100 persons.
\n" ); document.write( "100 pesos per head for 101 or more pesos.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "let f(x) represent the cost function.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "let x represent the number of persons.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "your piece-wise function would look like:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "f(x) = 150 * x for 0 <= x <= 20
\n" ); document.write( "f(x) = 130 * x for 21 <= x <= 50
\n" ); document.write( "f(x) = 110 * x for 51 <= x <= 100
\n" ); document.write( "f(x) = 100 * x for x >= 101\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "alternatively, it could also be written as:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "f(x) = 0 for x = 0
\n" ); document.write( "f(x) = 150 * x for 0 < x <= 20
\n" ); document.write( "f(x) = 130 * x for 20 < x <= 50
\n" ); document.write( "f(x) = 110 * x for 50 < x <= 100
\n" ); document.write( "f(x) = 100 * x for 100 < x <= infinity\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "there are various ways to express it, but the main idea is that the function f(x) is defined differently for different intervals of x.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "here's a reference:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "https://www.mathsisfun.com/sets/functions-piecewise.html\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );