Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

STACK and QUEUE ("REAL LIFE")

Please help me to build a list of examples of stack and queue in real life situation...

Conditions:
The object concerned must only one object.
And the object must be tangible.

Example:
Queue (FIFO): The bullet in a machine gun..(you cannot fire 2 bullets at the same time)
Stack (LIFO): The tennis balls in their container.. (you cannot remove 2 balls at the same time)

Please help me I need more examples..
At least 10 examples


TNX :)
[code][blue]============================[/blue]
[red]THANK YOU AND GODBLESS !!!
from playagain[/red]
[blue]============================[/blue][/code]

Comments

  • zibadianzibadian Posts: 6,349Member
    : Please help me to build a list of examples of stack and queue in
    : real life situation...
    :
    : Conditions:
    : The object concerned must only one object.
    : And the object must be tangible.
    :
    : Example:
    : Queue (FIFO): The bullet in a machine gun..(you cannot fire 2
    : bullets at the same time)
    : Stack (LIFO): The tennis balls in their container.. (you cannot
    : remove 2 balls at the same time)
    :
    : Please help me I need more examples..
    : At least 10 examples
    :
    :
    : TNX :)
    : [code]: [blue]============================[/blue]
    : [red]THANK YOU AND GODBLESS !!!
    : from playagain[/red]
    : [blue]============================[/blue][/code]:

    Stack: Truck/Container with only 1 access to the freight area
    Queue: a car ferry/train, a narrow escalator (no room to pass the person before you), a production line
  • playagainplayagain Posts: 22Member

    Stack: Truck/Container with only 1 access to the freight area
    Queue: a car ferry/train, a narrow escalator (no room to pass the
    person before you), a production line

    [color=Blue]TNX FOR THE REPLY
    but those examples you had given had been given already by my teacher.
    And please give me examples that uses objects such as balls, coins, etc. preferably no people involved.]

    TNX TNX TNX...
    Hoping for your examples
    :) :) :)[/color]
    [code][blue]============================[/blue]
    [red]THANK YOU AND GODBLESS !!!
    from playagain[/red]
    [blue]============================[/blue][/code]
  • kirAdesskirAdess Posts: 4Member
    Stack --
    1.Shuttlecock in its container.
    2.Loaf Bread
    3.bricks
    4.building pyramids(the last "giant brick" will be the first on top)
    Queue--
    1.shutgun
    2.printer(first coupon bond will be the first to be filled and printed)
    3.car racing
    4.car in a traffic
    5.paying in a grocery
    6.pool slide
  • kirAdesskirAdess Posts: 4Member
    This post has been deleted.
Sign In or Register to comment.