Basic Functions Examples

Here are othere examples and references for you to understand at least the basics of functions. These can be business related, depending on how you try to decipher it.


Example 1:
Mina wanted to buy food for Momo, her roommate. Mina looked at the menu and decided to buy 5 Hamburgers, 2 Large and 1 Medium sized Pizzas, 2 boxes of Chicken wings and 1 Spaghetti. What is the total amount of money she needs to pay? How many wings overall are there inside the boxes she bought? Use the Basic Form of Function in solving.



Product
Quantity
Price
Hamburger
1
P 75
Pizza
1
P 129 (S), P 175 (M), P 225 (L)
Chicken
1 (box) / 6 wings
P 100/ box
Spaghetti
1
P 89
 

a.) Let "H" be the Hamburger function
     H(1) = (1)(75) = 75 php

b.) Let "L" be the Large Pizza size
     Let "m" be the Medium Pizza size 
     and Let "p" be the Pizza overall

L(2) = (2)(225) = 450 php
m(1) = (1)(175) = 175 php
p = L + m
p= 450 + 175 = 625 php

c.) Let "c" be the Chicken
c(2) = (2)(100) = 200 php

d.) Let "w" be the number of wings inside the box of Chicken
WingsC(2) = (2)(6) = 12 wings

e.) Let "s" be the Spaghetti
s(1)= (1)(89) = 89 php

Amount = 75 + 625 + 200 + 89
              = 989 php
The total amount of the food Mina bought is 989 php.


Example 2:
Chaeyoung decided to cut the rope she has into ascending sizes. It all started from 1.5 inches, 3 inches, 4.5 inches up to 9 inches. How many pieces did she cut from the respective sizes she did? What were the sizes of each rope she has cut?

Quantity
Size of each rope
1
1.5 inches
2
3 inches
3
4.5 inches
4
6 inches
5
7.5 inches
6
9 inches

Solution:
Let “f” be the function name.
Formula: f(x) = (x)(1.5)
      a.)     f(3) = (3)(1.5)
              = 4.5 inches

      b.)    f(4) = (4)(1.5)
              = 6 inches

      c.)     f(5) = (5)(1.5)
              = 7.5 inches

      d.)    f(6) = (6)(1.5)
              = 9 inches

Answer: Chaeyoung has cut off 6 pieces of rope with different sizes.
 





No comments:

Post a Comment