Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Frogger Math [modified]

Frogger Math [modified]

Scheduled Pinned Locked Moved The Lounge
question
44 Posts 26 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Steven J Jowett

    Frogger is an infinate number of jumps from the wall, because, given enough decimal places, any positive finate number divided by 2 will always produce a value greater that zero.

    Steve Jowett ------------------------- Real Programmers don't need comments -- the code is obvious.

    M Offline
    M Offline
    Media2r
    wrote on last edited by
    #19

    Absolutely. It's the age-old scenario: A gorgeous woman of limited attire is placed dead centre of a room. In one corner is the worlds best mathematician, in the other the worlds best physisist. A man announces the rules, "You will take turns approaching the woman. For each turn you get to move half the distance between you and the woman.". The mathematician promptly leaves, stating "with those rules I'll never get there!". The physisist stayes. When asked why he stays after hearing the mathematicians argument, he states "I'll sure as hell get close enough to make an approximate experiment!". //L

    1 Reply Last reply
    0
    • D Dalek Dave

      I never saw a shoe fly. I saw a house fly, I saw a horse fly, but I just gone seen about ev'ry ting when I see some footwear fly!

      ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #20

      Dalek Dave wrote:

      but I just gone seen about ev'ry ting when I see some footwear fly!

      You mean the wife has never heaved a shoe at you? Not once? C'mon, we won't tell. :-D

      L u n a t i c F r i n g e

      L 1 Reply Last reply
      0
      • R Richard Blythe

        Frogger sits twenty feet from a wall. He has just eaten two (slow roasted) flies. ;P Now he sees another fly at the base of the wall! On his first jump, he has the energy to jump half the distance to the wall. (ten feet) :doh: All subsequent jumping power is also cut in half. :(( Question: How many jumps will it take for Frogger to reach the wall? (This is a DISTANCE question, not a "eat the fly" question)

        The mind is like a parachute. It doesn’t work unless it’s open.

        modified on Tuesday, July 20, 2010 11:33 AM

        B Offline
        B Offline
        Bassam Abdul Baki
        wrote on last edited by
        #21

        If his mouth extends over his feet, he'll get there eventually. If his mouth is over or behind his feet, he'll never get there. The same goes with his tongue. Also, since the fly is three dimensional, the forgger will reach it eventually.  If it's just a shadow of a fly, no amount of jumping will help.

        1 Reply Last reply
        0
        • L Lost User

          Dalek Dave wrote:

          but I just gone seen about ev'ry ting when I see some footwear fly!

          You mean the wife has never heaved a shoe at you? Not once? C'mon, we won't tell. :-D

          L u n a t i c F r i n g e

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #22

          I will!

          Join the cool kids - Come fold with us[^]

          1 Reply Last reply
          0
          • R Richard Blythe

            Frogger sits twenty feet from a wall. He has just eaten two (slow roasted) flies. ;P Now he sees another fly at the base of the wall! On his first jump, he has the energy to jump half the distance to the wall. (ten feet) :doh: All subsequent jumping power is also cut in half. :(( Question: How many jumps will it take for Frogger to reach the wall? (This is a DISTANCE question, not a "eat the fly" question)

            The mind is like a parachute. It doesn’t work unless it’s open.

            modified on Tuesday, July 20, 2010 11:33 AM

            D Offline
            D Offline
            David Crow
            wrote on last edited by
            #23

            Richard Blythe wrote:

            Question: How many jumps will it take for Frogger to reach the wall?

            He'll never get there.

            "One man's wage rise is another man's price increase." - Harold Wilson

            "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

            "Man who follows car will be exhausted." - Confucius

            L 1 Reply Last reply
            0
            • R Richard Blythe

              Right on my man! It's amazing how many people don't get it. This was a question that I dug out of an old college math book. (Your hired!) :)

              The mind is like a parachute. It doesn’t work unless it’s open.

              E Offline
              E Offline
              Ennis Ray Lynch Jr
              wrote on last edited by
              #24

              Or they just realized that an infinite series or harmonic series question is Calculus 101 and is borderline pedestrian and no fun to bother with. However, considering the question involved frogs you have to consider that a Frog has a minimum non-zero jumping distance or are we in a perfect, frictionless vacuum with a frog who occupies a point in space and not a volume?

              Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. I also do Android Programming as I find it a refreshing break from the MS. "And they, since they Were not the one dead, turned to their affairs" -- Robert Frost

              1 Reply Last reply
              0
              • D Dalek Dave

                I never saw a shoe fly. I saw a house fly, I saw a horse fly, but I just gone seen about ev'ry ting when I see some footwear fly!

                ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave

                H Offline
                H Offline
                hammerstein05
                wrote on last edited by
                #25

                Dumbo!

                1 Reply Last reply
                0
                • R Richard Blythe

                  Frogger sits twenty feet from a wall. He has just eaten two (slow roasted) flies. ;P Now he sees another fly at the base of the wall! On his first jump, he has the energy to jump half the distance to the wall. (ten feet) :doh: All subsequent jumping power is also cut in half. :(( Question: How many jumps will it take for Frogger to reach the wall? (This is a DISTANCE question, not a "eat the fly" question)

                  The mind is like a parachute. It doesn’t work unless it’s open.

                  modified on Tuesday, July 20, 2010 11:33 AM

                  M Offline
                  M Offline
                  Marc Clifton
                  wrote on last edited by
                  #26

                  Richard Blythe wrote:

                  Question: How many jumps will it take for Frogger to reach the wall?

                  2 jumps. After the first jump, an exception is thrown, the frogger reboots, and he's back to full energy. Marc

                  R 1 Reply Last reply
                  0
                  • M Marc Clifton

                    Richard Blythe wrote:

                    Question: How many jumps will it take for Frogger to reach the wall?

                    2 jumps. After the first jump, an exception is thrown, the frogger reboots, and he's back to full energy. Marc

                    R Offline
                    R Offline
                    Richard Blythe
                    wrote on last edited by
                    #27

                    Marc Clifton wrote:

                    an exception is thrown

                    Oh yes, I use that exception all the time: FroggerEnergyException

                    The mind is like a parachute. It doesn’t work unless it’s open.

                    1 Reply Last reply
                    0
                    • R Richard Blythe

                      Allways remmber to spel your wordds write. :-D

                      The mind is like a parachute. It doesn’t work unless it’s open.

                      T Offline
                      T Offline
                      TheyCallMeMrJames
                      wrote on last edited by
                      #28

                      Potayto potahto. ;)

                      They Call me Mister James

                      1 Reply Last reply
                      0
                      • R Richard Blythe

                        Right on my man! It's amazing how many people don't get it. This was a question that I dug out of an old college math book. (Your hired!) :)

                        The mind is like a parachute. It doesn’t work unless it’s open.

                        T Offline
                        T Offline
                        TheyCallMeMrJames
                        wrote on last edited by
                        #29

                        Richard Blythe wrote:

                        Your hired

                        Hey spelling cop! It's "you're hired". ;) hehehe Don't go writing up a grammar checker, okay? hehe

                        They Call me Mister James

                        R 1 Reply Last reply
                        0
                        • T TheyCallMeMrJames

                          Richard Blythe wrote:

                          Your hired

                          Hey spelling cop! It's "you're hired". ;) hehehe Don't go writing up a grammar checker, okay? hehe

                          They Call me Mister James

                          R Offline
                          R Offline
                          Richard Blythe
                          wrote on last edited by
                          #30

                          I'm hit! :laugh:

                          The mind is like a parachute. It doesn’t work unless it’s open.

                          1 Reply Last reply
                          0
                          • S Steven J Jowett

                            Frogger is an infinate number of jumps from the wall, because, given enough decimal places, any positive finate number divided by 2 will always produce a value greater that zero.

                            Steve Jowett ------------------------- Real Programmers don't need comments -- the code is obvious.

                            C Offline
                            C Offline
                            Chris Losinger
                            wrote on last edited by
                            #31

                            all he has to do is get close and then lean over a bit. or, get a bit closer and let one of the electrons in one of the cells in his skin bump into one of the electrons in the silica in the wall. you can't get infinitely-close-but-not-touching in the real world.

                            image processing toolkits | batch image processing

                            1 Reply Last reply
                            0
                            • R Robert Rohde

                              Well thats a long tongue :laugh:

                              S Offline
                              S Offline
                              Steve Mayfield
                              wrote on last edited by
                              #32

                              Even the fly would stick around for one that long :laugh: especially if it was a female :-O

                              Steve _________________ I C(++) therefore I am

                              1 Reply Last reply
                              0
                              • R Richard Blythe

                                Right on my man! It's amazing how many people don't get it. This was a question that I dug out of an old college math book. (Your hired!) :)

                                The mind is like a parachute. It doesn’t work unless it’s open.

                                C Offline
                                C Offline
                                Chris Losinger
                                wrote on last edited by
                                #33

                                Richard Blythe wrote:

                                I dug out of an old college math book.

                                old... no foolin. like 490 BC[^] old.

                                image processing toolkits | batch image processing

                                modified on Tuesday, July 20, 2010 1:10 PM

                                U 1 Reply Last reply
                                0
                                • D David Crow

                                  Richard Blythe wrote:

                                  Question: How many jumps will it take for Frogger to reach the wall?

                                  He'll never get there.

                                  "One man's wage rise is another man's price increase." - Harold Wilson

                                  "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

                                  "Man who follows car will be exhausted." - Confucius

                                  L Offline
                                  L Offline
                                  Luc Pattyn
                                  wrote on last edited by
                                  #34

                                  Correct. After his first jump, the fly is out of there and the Frogger is no longer interested in nearing the wall. :)

                                  Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

                                  Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.

                                  1 Reply Last reply
                                  0
                                  • C Chris Losinger

                                    Richard Blythe wrote:

                                    I dug out of an old college math book.

                                    old... no foolin. like 490 BC[^] old.

                                    image processing toolkits | batch image processing

                                    modified on Tuesday, July 20, 2010 1:10 PM

                                    U Offline
                                    U Offline
                                    Uros Calakovic
                                    wrote on last edited by
                                    #35

                                    Zeno's paradoxes[^] ?

                                    The bearing of a child takes nine months, no matter how many women are assigned.

                                    C 1 Reply Last reply
                                    0
                                    • U Uros Calakovic

                                      Zeno's paradoxes[^] ?

                                      The bearing of a child takes nine months, no matter how many women are assigned.

                                      C Offline
                                      C Offline
                                      Chris Losinger
                                      wrote on last edited by
                                      #36

                                      that's where my link was supposed to go... yeah :-O

                                      image processing toolkits | batch image processing

                                      1 Reply Last reply
                                      0
                                      • R Richard Blythe

                                        Frogger sits twenty feet from a wall. He has just eaten two (slow roasted) flies. ;P Now he sees another fly at the base of the wall! On his first jump, he has the energy to jump half the distance to the wall. (ten feet) :doh: All subsequent jumping power is also cut in half. :(( Question: How many jumps will it take for Frogger to reach the wall? (This is a DISTANCE question, not a "eat the fly" question)

                                        The mind is like a parachute. It doesn’t work unless it’s open.

                                        modified on Tuesday, July 20, 2010 11:33 AM

                                        J Offline
                                        J Offline
                                        Joan M
                                        wrote on last edited by
                                        #37

                                        Lucky frog that made only one jump and then it started walking...

                                        [www.tamelectromecanica.com] Robots, CNC and PLC machines for grinding and polishing.

                                        1 Reply Last reply
                                        0
                                        • R Richard Blythe

                                          Frogger sits twenty feet from a wall. He has just eaten two (slow roasted) flies. ;P Now he sees another fly at the base of the wall! On his first jump, he has the energy to jump half the distance to the wall. (ten feet) :doh: All subsequent jumping power is also cut in half. :(( Question: How many jumps will it take for Frogger to reach the wall? (This is a DISTANCE question, not a "eat the fly" question)

                                          The mind is like a parachute. It doesn’t work unless it’s open.

                                          modified on Tuesday, July 20, 2010 11:33 AM

                                          A Offline
                                          A Offline
                                          Andrew Rissing
                                          wrote on last edited by
                                          #38

                                          3 hops. Because the first jump is 10 feet and the last two are 5. You didn't say it was halved each time. ;-) If you did though, you're talking about an age old math teaser. I believe it was an arrow travels half the remaining distance in a second. How long will it take to arrive at its target? Answer: Never. It will always be some faction of distance away from the target.

                                          D 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups