document.write( "Question 1010645: My problem is as follows:
\n" );
document.write( "I need to write a function of the total amount of payment (P) in the number of t-shirts ordered (N).
\n" );
document.write( "Here is the word problem:
\n" );
document.write( "a wholesale store charges $20 per t-shirt for the first 50 t-shirts, then $15 per t-shirt for those t-shirts from 51 to 125 t-shirts, and then $12 for each t-shirt from the 125th t-shirt.\r
\n" );
document.write( "\n" );
document.write( "I would greatly appreciate any help.
\n" );
document.write( "Thanks in advance.
\n" );
document.write( "Maria \n" );
document.write( "
Algebra.Com's Answer #626200 by rothauserc(4718)![]() ![]() You can put this solution on YOUR website! let i=0, j=0, k=0 \n" ); document.write( "if N < or = 50, then i=N \n" ); document.write( "If N > or = 51 and N < or = 125 then \n" ); document.write( " i=50 \n" ); document.write( " j=75 \n" ); document.write( "EXIT \n" ); document.write( "if N > 125 then \n" ); document.write( " i=50 \n" ); document.write( " j=75 \n" ); document.write( " k=(N-125) \n" ); document.write( "EXIT \n" ); document.write( "P = 20i + 15j + 12k \n" ); document.write( " \n" ); document.write( " |