STACK AND QUEUE ("Real Life Examples")

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • playagain
    New Member
    • May 2007
    • 9

    STACK AND QUEUE ("Real Life Examples")

    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 :)
  • pbmods
    Recognized Expert Expert
    • Apr 2007
    • 5821

    #2
    Heya, playagain.

    The obvious example of a queue is... well, a queue. Such as at the DMV, except there, you only go in. Nobody ever comes out.

    You're on the right track. What else have you come up with?

    Comment

    • playagain
      New Member
      • May 2007
      • 9

      #3
      Originally posted by pbmods
      Heya, playagain.

      The obvious example of a queue is... well, a queue. Such as at the DMV, except there, you only go in. Nobody ever comes out.

      You're on the right track. What else have you come up with?
      TNX TNX TNX


      please give me some more examples

      Comment

      • pbmods
        Recognized Expert Expert
        • Apr 2007
        • 5821

        #4
        I'll post one more (of each), but then you won't get any more until you post some examples that you have come up with.

        An example of a stack, while we're on the subject of firearms, is a handgun magazine. Bullets get pushed in from the top, and they get popped out from the top.

        An example of a queue is a carwash. Cars come out in the same order that they go in.

        Comment

        • playagain
          New Member
          • May 2007
          • 9

          #5
          I had come up with this:

          STACK: The batteries in flashlight
          (You can not remove the second battery unless u remove the last in)

          QUEUE: Drive-thru in MCDO
          (You can not get your order unless the first one go away)

          PLS GIVE ME MORE I NEED 10 examples for FRIDAY assginment :) :) :)
          I need to finish this on Thursday night (which is tomorrow)

          GODBLESS

          Comment

          • JKing
            Recognized Expert Top Contributor
            • Jun 2007
            • 1206

            #6
            Just a few from me.

            Stack
            Pringles! Last chip to go in the can is the first one in my stomach.
            Clowns piling into a car that only has one door. Last clown in is the first one out.

            Queue
            Line at the grocery store
            Print queue... Printers use queues for print jobs

            Comment

            Working...