Question 1010645:  My problem is as follows: 
I need to write a function of the total amount of payment (P) in the number of t-shirts ordered (N). 
Here is the word problem: 
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.
 
I would greatly appreciate any help. 
Thanks in advance. 
Maria 
 Found 2 solutions by  rothauserc, MathTherapy: Answer by rothauserc(4718)      (Show Source): 
You can  put this solution on YOUR website! let i=0, j=0, k=0 
if N < or = 50, then i=N 
If N > or = 51 and N < or = 125 then 
     i=50 
     j=75 
EXIT 
if N > 125 then 
     i=50 
     j=75 
     k=(N-125) 
EXIT 
P = 20i + 15j + 12k 
 
 Answer by MathTherapy(10557)      (Show Source): 
You can  put this solution on YOUR website! My problem is as follows: 
I need to write a function of the total amount of payment (P) in the number of t-shirts ordered (N). 
Here is the word problem: 
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.
 
I would greatly appreciate any help. 
Thanks in advance. 
Maria 
I believe you meant: "and then $12 for each t-shirt from the 126th   t-shirt."
 
This is a piece-wise function, as there're different prices for different numbers of t-shirts purchased 
Number of t-shirts purchased: N  
If up to 50 t-shirts are purchased, cost is: 20N 
If 51 - 125 t-shirts, inclusive, are purchased, cost is: 15(N - 50) + 20(50), or 15N - 750 + 1,000, or 15N + 250 
If more than 125 t-shirts are purchased, cost is: 12(N - 125) + 15(125) + 250, or 12N - 1,500 + 1,875 + 250, or 12N + 625
 
We therefore get: 
   
  | 
 
  
 
 |   
 
 |