You are ordering photo prints online to send out to all your friends for the holidays. The first 20 prints cost

12¢ each, if you order more than 20 the price of the additional prints goes down to 8¢ each.
a. Write a function to describe the cost of the prints.
b. What is the cost if you buy 16 prints?
c. What is the cost if you buy 35 prints?
d. What is the cost if you buy 112 prints?

f(x) =

0.12x if 0<x<=20
.12*20 + 0.08(x-20) if x>20

now just plug and chug

a. Sure thing, here's the function to describe the cost of the prints:

If x is the number of prints ordered, the cost (in cents) would be:

Cost(x) = 12x, if x <= 20
Cost(x) = 240 + 8(x-20), if x > 20

b. If you buy 16 prints:
Since 16 is less than or equal to 20, we use the first part of the function:
Cost(16) = 12 x 16 = 192 cents

c. If you buy 35 prints:
Since 35 is greater than 20, we use the second part of the function:
Cost(35) = 240 + 8(35-20) = 240 + 8(15) = 240 + 120 = 360 cents

d. If you buy 112 prints:
Since 112 is greater than 20, we use the second part of the function:
Cost(112) = 240 + 8(112-20) = 240 + 8(92) = 240 + 736 = 976 cents

Please note that the results are in cents. If you want the cost in dollars, just divide the final result by 100. I'm not sure if you're buying in bulk or opening a clown photography business, but either way, I hope these calculations put a smile on your face!

a. The cost of the prints can be described using the following function:

Cost(x) = 12¢ * x, if x <= 20
Cost(x) = 12¢ * 20 + 8¢ * (x - 20), if x > 20

b. If you buy 16 prints, since 16 is less than or equal to 20, we can use the first part of the function:

Cost(16) = 12¢ * 16 = $1.92

c. If you buy 35 prints, since 35 is greater than 20, we can use the second part of the function:

Cost(35) = 12¢ * 20 + 8¢ * (35 - 20) = $2.40 + 8¢ * 15 = $2.40 + $1.20 = $3.60

d. If you buy 112 prints, since 112 is greater than 20, we can use the second part of the function:

Cost(112) = 12¢ * 20 + 8¢ * (112 - 20) = $2.40 + 8¢ * 92 = $9.28 + $7.36 = $16.64

a. To write a function to describe the cost of the prints, we can use an if-else statement because there are two different prices based on the quantity ordered. Let's call the total number of prints ordered "n".

Function to calculate cost:
```
def calculate_cost(n):
if n <= 20:
cost = 0.12 * n
else:
additional_prints = n - 20
cost = (0.12 * 20) + (0.08 * additional_prints)
return cost
```

b. To find the cost if you buy 16 prints, we can use the function `calculate_cost` and pass 16 as the argument.
```
cost = calculate_cost(16)
```
The cost will be $1.92 (since all 16 prints fall under the first pricing tier).

c. To find the cost if you buy 35 prints, we can again use the function `calculate_cost` and pass 35 as the argument.
```
cost = calculate_cost(35)
```
The cost will be $3.0 (since the first 20 prints cost $0.12 each and the additional 15 prints cost $0.08 each).

d. To find the cost if you buy 112 prints, once again, we use the function `calculate_cost` and pass 112 as the argument.
```
cost = calculate_cost(112)
```
The cost will be $11.4 (since the first 20 prints cost $0.12 each, the next 80 prints (112-20) cost $0.08 each, and the remaining 12 prints (112-100) cost $0.12 each).