document.write( "Question 1065823: A hotel chain charges $60 each night for the first two nights and $40 for each additional nights stay. The hotel cost function T is a function of the number of nights x that a guest stays. Write the piecewise function T(x) and then calculate T(2), T(3), and T(7). \n" ); document.write( "
Algebra.Com's Answer #681018 by Boreal(15235)\"\" \"About 
You can put this solution on YOUR website!
T=60x 0 < x <= 2
\n" ); document.write( "120+40x 3 < x
\n" ); document.write( "T(2)=$120
\n" ); document.write( "T(3)=$160
\n" ); document.write( "T(7)=$320
\n" ); document.write( "
\n" );