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?

21 comments:

  1. 1.The input is your money and the output would be the snack
    2.The ATM where you withdraw money input=value key in output=money
    Function:f(x)=x+C
    C=0
    3.A function has fixed inputs and outputs
    and has more than one variable involved
    Team Chin Yong, Jing Han. Siddhant, Jun Yang

    ReplyDelete
  2. 1) the money placed into the vending machine is the input. The vending machine itself is the function, which "converts" the money placed inside to the product which is the output.
    2) Another analogy is the money changer.
    3) Every input has only one output and can share outputs.

    ReplyDelete
  3. 1. The input is money. The function can be the combination of buttons that you press to get the item you want. The output is the item.

    2. Another analogy is frequent exercise. The input is time. the function can be the type of exercise. The output is more muscles.

    3. The function have defined inputs and outputs and has multiple variables.

    ReplyDelete
  4. 1. The input would be the money and the function is when you select the food/drink you want and the output would be the selected drink/food.
    2. The amount of time spent working (input), when you work (function), you will earn money (output).
    3. Assumption made is that the type of functions would only be one to one or many to one.

    ReplyDelete
  5. 1. The input would be the coins inserted into the machine and the output would be the snacks or drink that you selected.
    2. Kicking of a soccer ball. The input is the action of kicking the ball and the output is whether you score a goal or miss.
    3. The assumption made is that the goal is scored.

    ReplyDelete
  6. 1) The input is the money, the function is the number and the output is the drink. The
    combination of the money and the number can only give you one drink.
    2) Another analogy is studying. Studying is the input, the amount of time studying is the
    function and the output is your score.
    3) The more time you study the better your score.

    ReplyDelete
  7. Q1) The input would be the money and the output would be the product.

    Q2) An analogy would be photosynthesis. Carbon Dioxide is the input and Oxygen is the output.

    Q3) The assumption is that the glucose is ignored.

    ReplyDelete
  8. 1. It is because the vending machine has an input and an output. The input would be the coins or the money you place into the machine. The function would be the button/s you press to get the item/s, and the output would be the item/s. Although there can be more than 1 output (depending on the price of the items you want), it is still a function as each input all has an output (unless the item you want is finished).
    2. The type of food you eat (function) e.g. fried chicken, the input would be amount of food you eat and the output would be how full you would be.
    3. The more you eat, the more full you would be.

    ReplyDelete
  9. 1. The input is the money, while the output is the drink/food
    2. An analogy would be respiring. The input would be oxygen, while carbon dioxide is the output.
    3. The assumption is the function is one to one and neglects the other gases like nitrogen.

    ReplyDelete
  10. 1. A function is made up of inputs and outputs where every input has only one output. In the case of the vending machine, the input is money and the out put is a product.
    2. An example would be baking cookies. Depending on the amount of division of portions of the batter, the same amount of cookies would be obtain after baking.
    3. The process will not fail.

    ReplyDelete
  11. 1)The input would be the money inserted and the output would be the products bought.
    2)Another analogy would be a casino machine. An input would be the bet money inserted and the output would be either nothing or prize money.
    3)A single input can have multiple outputs.

    ReplyDelete
  12. 1) The input is the money and the output would be the product purchased.
    2. Another analogy could be a ATM machine where the input would we be the amount of money you would like to withdraw and the output would be money.
    3) A ATM has fixed inputs and outputs. Unless, a technical failure may occur.

    ReplyDelete
  13. This comment has been removed by the author.

    ReplyDelete
  14. 1) The input is the coins inserted into the machine, the function is the vending machine itself and the output is the item that comes out.
    2) A jukebox. The money placed into the coin slot is the input, the function is the machine and the output is the song that plays.
    3) Different songs cost differently.

    ReplyDelete
  15. 1) It fulfills all requirements for a function to work.
    2) Teachers teaching students. The input is their wise words and wisdom and teachings. The function is that we process their wise words. The output is applying what we've learnt.
    3) The assumption is that the students actually listen to the teacher.

    ReplyDelete
  16. This is using the relation of one output with many inputs. So the input is ur $$ and the output is the drink.
    Another example is food stall, when we pay the stall owner, we get our desired food/drink

    ReplyDelete
  17. 1. It has an input (money) and an output (product)
    2. A fan. When you input the speed that you want on the dial, the output will be the speed that the fan blades rotate at
    3. It will give an output even when there is no power source

    ReplyDelete
  18. 1. Basically the input is the money and the output is the snack/food/product.
    2. Singers. They produce albums (input) and earn money and fans (output).
    3.Assumptions made is that there will be an output no matter what.

    ReplyDelete
  19. 1. The input is the coins you slot in, and output the product.
    2. A currency converter. Having S$ being the input and having the possibilities of multiple output, and various inputs can share a single output
    3. None really.

    ReplyDelete
  20. 1)The input is the money, the output is the item that comes out and the function is the vending machine.
    2)Another analogy is the ATM machine. The input is the card and the function is the machine and the output is the money you withdraw.
    3)The assumption is that with the card you can withdraw any amount of money.

    ReplyDelete
  21. 1. The money inserted into the vending machine is the input and the drinks or snacks is the output.
    2.An analogy would be an arcade game machine. The input would be the coins inserted to start the game and the output would be whether you won or lost.
    3. Assuming that the game is rigged, it would be a one-to-one function.

    ReplyDelete