document.write( "Question 1102716: In 2014, the cost of a first class postage stamp was $0.49. Weight is in ounces and cost is in dollars. The ordered pairs listed are (1,0.49),(2,0.70),(3,0.91), and (3.5, 1.12). Write a function to represent the cost of mailing a stamped letter that weighs between 0 and 3.5 ounces. What type of function is it? \n" ); document.write( "
Algebra.Com's Answer #717559 by greenestamps(13200)\"\" \"About 
You can put this solution on YOUR website!


\n" ); document.write( "Your statement of the problem doesn't make it clear; but in fact this function is a step function. The given data points tell us
\n" ); document.write( "1 ounce --> 49 cents
\n" ); document.write( "2 ounces --> 70 cents
\n" ); document.write( "3 ounces --> 91 cents
\n" ); document.write( "3.5 ounces --> $1.12

\n" ); document.write( "The first three data points make this look like a linear function -- specifically, \"C+=+28%2B.21x\" where x is the weight in ounces of the letter. However, the cost of mailing a letter weighing (for example) 2.35 ounces is 91 cents, not 28+2.35(21)=77.35 cents.

\n" ); document.write( "The step function (a piecewise function) giving the cost of postage for mailing a letter weighing between 0 and 3.5 ounces is
\n" ); document.write( "C = .49, if 0<=x<1;
\n" ); document.write( "C = .70, if 1<=x<2;
\n" ); document.write( "C = .91, if 2<=x<3;
\n" ); document.write( "C = 1.21, if 3<=x<=3.5

\n" ); document.write( "You could write this function without using a piecewise function by using the floor function, where floor(x) is the largest integer less than or equal to x:
\n" ); document.write( "C = .49 + .21*floor(x)
\n" ); document.write( "
\n" ); document.write( "
\n" );