Tuesday, January 7, 2014

The Vending Machine analogy

A function has input and output. A good analogy of this would

be a vending machine.

  1. Explain further why this analogy is used to depict a function?
  2. Can you think of other analogy?
  3. What are the assumptions made?

28 comments:

  1. 1.This analogy works well and depicts well as when you put in the coins for the food, the coins is the input, the vending machine is the function and the food is the output.

    2. Piggy bank.

    3. The coin you are trying to save will be the input, the piggy bank's function is to save it up for you and the output is when you need to spend the money, you can take it out.

    Bennett Neoh :D

    ReplyDelete
    Replies
    1. Assuming the piggy bank has a way to get the money out.

      Delete
  2. This comment has been removed by the author.

    ReplyDelete
  3. 1) When you put a coin into the vending machine (input) , you can get an item out (output)
    2)shadow
    3)the height of the sun is the same

    ReplyDelete
  4. Is this kind of function possible: f(x, y) = x + y?

    ReplyDelete
  5. 1. The vending machine performs the function based on the input e.g. how much money is put into the vending machine. Then, we choose our output which are the snacks. The vending machine performs the function to drop the snacks.

    2. Robots

    3. The assumptions are that the robots will move according to the controls

    ReplyDelete
  6. Sa (Brandi Lai)

    1. One imput (money) can produce many outputs (snacks), and many imputs (more money) can produce one output (a more expensive snack).
    2. A Gacha machine... or an arcade claw game.
    3. Assuming that there is only one type of each snack at different prices (and that our money isn't fake- just kidding).

    ReplyDelete
  7. When we insert the coin into the vending machine, the coin is the input. The output would be the food ejected from the machine.
    Another analogy would be a parking meter form overseas, where the coins are the input, and the amount of hours added for parking is the output
    Assumptions made are that the function of the parking meter would be to add the number of hours that corresponds to the amount of money put in

    ReplyDelete
  8. 1. This analog is used as the money put in and the buttons pressed is an input, while the output is the food and the function is the machine operations itself.
    2. I can think of keyboards, pay phones and switches.
    3. There is an assumption that the money (input) can only have one output.

    ReplyDelete
  9. 1. Money is the input, while the output would be whatever that comes out from the vending machine.
    2. Lucky Draw
    3. The assumption is in the vending machine, there is a different pricing for everything

    ReplyDelete
  10. 1. When we put in a coin, the vending machine acts as a function and the thing that we get from the vending machine is the output.
    2. Put a coffee capsule into the coffee machine and the coffee machine acts as a function. Then the output is the coffee that come out.
    3. When I put in something, something must come out.

    ReplyDelete
  11. 1. Remember when you guys were small, the ticket machines on the bus (Some random big red machine), you had to put the fare card in and press a button to see where you are going, then the fare card would come out. This was before Ezlink era. pic: http://2.bp.blogspot.com/_trXTGRQ_ytQ/TcqdW1eOBuI/AAAAAAAAHuU/WPK6UwgrJYk/s800/IMG_7019.jpg

    2. When you buy a standard ticket at the MRT station, you would insert the money and the ticket would come out.

    3. In the 1990s when you enter the MRT, you would need to use insert the fare card into the gantry, which the end result is a ride and your fare card.

    ReplyDelete
  12. 1. Money (input) is placed into the machine and food or drinks (output) comes out of the machine.
    2. Studying.
    3. When you put in effort (input) and study properly, then good grades (output) will follow suit.

    ReplyDelete
  13. 1) When a coin (input) is deposited into a vending machine you get the item (output).

    2) Touchscreen

    3) When a touchscreen detects a touch (input), it sends a signal to the phone which tell the display to display something else (output).

    ReplyDelete
  14. 1) For a vending machine, the money we put into the machine is the input and the machine is the function. Whatever snack or drink we choose, that is the output.
    2) Another analogy is a bank. When we put a certain amount of money, there will be a yearly interest given back to us. The money we put in is the input, while the calculations of the interest is the function and the interest given to us is the output.
    3) The assumptions is that the bank will give the yearly interest accurately.

    ReplyDelete
  15. 1. Consider f(x), where x is the money inputted, and f is the vending machine (selling only one item). f(x) would then be the item deposited or 0 (null) if x is less than the money required (say it is $5). In this case, f(x) = (5 < x).

    2. Lamp.

    3. Consider f(x). x is the electricity you put in in watts, while f is the lamp, and f(x) is the light produced in lux. If using 1 watt produces 10 lux and 10 watts produces 100 lux, then f(x) = 10x.

    ReplyDelete
    Replies
    1. Oops: Combine points 2 and 3 above, and for 3:

      3. We assume that the lamp produces 10 lux for every 1 watt, there is no external force or energy manipulating the result; and that the lamp is ideal (no internal resistance), resulting in a linear relation of the domain and co-domain.

      Delete
  16. This comment has been removed by the author.

    ReplyDelete
  17. 1) The analogy is used to depict a function is because when you insert coins (input) into the vending machine (function) and select the food or beverage you want, the item will come out (output).
    2) Television Remote Control. When you press the button on the remote control to choose the channel, the channel would be switched. Basically, the remote control is the function, the channel that you press will be the input and the output would be the channel you would want to watch.
    3) The assumption is that remote control will respond to whatever you pressed. For example, the remote control is unresponsive or faulty.

    ReplyDelete
  18. 1) This analogy is used because it shows that there's an output whenever an input "passes through" a function. In this case, a selected item would come out if you put coins into the vending machine.

    2) Money changer. When you pay a certain amount of money, you receive another sum of money in another currency

    3) The assumption is that the money changer would follow the exchange rate of the currency.

    ReplyDelete
    Replies
    1. Danish only answered Q2 so...

      2) Payphone. When money is put in, you get like a certain amount of time to talk on the public phone.

      Delete
  19. 1: The analogy is used as when the coins are inserted into the machine (input), you press the button for (function) and select the food or beverage you want, the item will come out (output).

    2: Cash register. The amount of money needed will be keyed in to the cash register (input) and the cash register will calculate the change required (function), resulting in the change being provided later on (output).

    3: I have assumed that the money given will always have change provided.

    ReplyDelete
  20. f(x) = food
    where f = vending machine, and x = coins, & food is the output.

    The bank. Where the function (would be + interest rate) & the input, your money. The output will be input + interest rate.

    Lim Ming Hui

    ReplyDelete
  21. 1. The machine uses the amount of money as an input and deducts the price of the selection from the input as a function and gives you the your selection as an output.

    2. Keyboard.

    3. Assumptions are that the person plugged it into a monitor.

    ReplyDelete
  22. 1. The imput (coin) will only have one output (food)

    2. Another example is the phone

    3. When you key in a telephone number, you would call only one person and thus have only one output

    Michael

    ReplyDelete
  23. 1. The money which is the input will be put into the vending machine which acts as the function and you will get an item which is the output.

    2. Kiddy ride machines

    3. The assumptions are the kiddy ride machine is not faulty.

    ReplyDelete
  24. 1) When a coin (input) is inserted into the vending machine (function), the food (output) will come out

    2) Drink Vending Machine

    3) The assumption is that the money (input) can only have 1 drink dispensed (output)

    ReplyDelete
  25. 1. The coin that u inset into the machine is the input, the machine is the function and the food that it dispense is the output

    2. Temperature.

    3. We assume that the time of day, season, strength of wind and where u are are kept constant

    ReplyDelete