Pertanyaan
II. Task 3: Let x represent the regular price of the book a. Give a function f that represents the price of the book if a P100 price reduction applies b. Give a function g that represents the price of the book if a 10% discount applies. c. Compute (f@g)(x) and (g@f)(x) . Describe what these means. Which of the composition of functions give a better deal to the customer?
Solusi
Jawaban
1. \( f(x) = x - 100 \)2. \( g(x) = 0.9x \)3. \( (f \circ g)(x) = -100 + 0.9x \)4. \( (g \circ f)(x) = 0.9(x - 100) \)5. \( (f \circ g)(x) \) gives a better deal to the customer.
Penjelasan
1. The function