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. Math(s) problem - puzzle

Math(s) problem - puzzle

Scheduled Pinned Locked Moved The Lounge
helpquestion
59 Posts 33 Posters 0 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.
  • C CPallini

    You teacher was right, and told you the correct result was actually 76. Could you please tell us why?

    "In testa che avete, Signor di Ceprano?" -- Rigoletto

    F Offline
    F Offline
    Fueled By Decaff
    wrote on last edited by
    #18

    I thought the answer was 78.

    C 1 Reply Last reply
    0
    • F Fueled By Decaff

      I thought the answer was 78.

      C Offline
      C Offline
      CPallini
      wrote on last edited by
      #19

      42. :-D

      "In testa che avete, Signor di Ceprano?" -- Rigoletto

      L 1 Reply Last reply
      0
      • D dandy72

        Sometimes I'm just being a little bit too literal. Daniel's answer above suggests we're both on the same page on this one. :-)

        Greg UtasG Offline
        Greg UtasG Offline
        Greg Utas
        wrote on last edited by
        #20

        Yeah, you're both on the AR page. :-D

        Robust Services Core | Software Techniques for Lemmings | Articles
        The fox knows many things, but the hedgehog knows one big thing.

        <p><a href="https://github.com/GregUtas/robust-services-core/blob/master/README.md">Robust Services Core</a>
        <em>The fox knows many things, but the hedgehog knows one big thing.</em></p>

        D D 2 Replies Last reply
        0
        • C CPallini

          You teacher was right, and told you the correct result was actually 76. Could you please tell us why?

          "In testa che avete, Signor di Ceprano?" -- Rigoletto

          D Offline
          D Offline
          Daniel Pfeffer
          wrote on last edited by
          #21

          Octal

          Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

          C 1 Reply Last reply
          0
          • D Daniel Pfeffer

            Octal

            Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

            C Offline
            C Offline
            CPallini
            wrote on last edited by
            #22

            Bravo!

            "In testa che avete, Signor di Ceprano?" -- Rigoletto

            1 Reply Last reply
            0
            • D Daniel Pfeffer

              You are wrong, the teacher is right. The order of precedence in mathematical operations is (mnemonic PEMDAS): Parentheses Exponentiation Multiplication & Division Addition & Subtraction If two operations have the same precedence, they are evaluated from left to right. Your problem may be rewritten as 230 - (220 x 0.5), the answer to which is obviously not 5.

              Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

              K Offline
              K Offline
              Keith Barrow
              wrote on last edited by
              #23

              3! - 1 I think you'll find :) It's curious - nearly everyone I know was taught BODMAS - its the same as PEDMAS, but B=Brackets, O="of". PEDMAS is probably better. Also the great Indian chief "SOH-CAH-TOA". I wonder if they still teach the latter in schools.

              KeithBarrow.net[^] - It might not be very good, but at least it is free!

              D P 2 Replies Last reply
              0
              • D dbrenth

                My teacher asked me to write a program on the board and solve it. I wrote:

                230 - 220 x 0.5

                and announced that the answer was 5! My teacher claimed I was incorrect, but I was not. Can you please explain it to him? Thanks Hint: My teacher was quite embarrassed when I actually said the answer out loud.

                Brent

                R Offline
                R Offline
                Rick York
                wrote on last edited by
                #24

                If you solve it left-to-right, ignoring precedence order, then the answer is 5. An old TI calculator would give you that answer. Today's windows calculator will not: it says 120 because the multiplication is done first.

                "They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"

                P 1 Reply Last reply
                0
                • Greg UtasG Greg Utas

                  Yeah, you're both on the AR page. :-D

                  Robust Services Core | Software Techniques for Lemmings | Articles
                  The fox knows many things, but the hedgehog knows one big thing.

                  D Offline
                  D Offline
                  dandy72
                  wrote on last edited by
                  #25

                  :-D

                  1 Reply Last reply
                  0
                  • D dbrenth

                    My teacher asked me to write a program on the board and solve it. I wrote:

                    230 - 220 x 0.5

                    and announced that the answer was 5! My teacher claimed I was incorrect, but I was not. Can you please explain it to him? Thanks Hint: My teacher was quite embarrassed when I actually said the answer out loud.

                    Brent

                    OriginalGriffO Offline
                    OriginalGriffO Offline
                    OriginalGriff
                    wrote on last edited by
                    #26

                    And today you learn that nobody likes a smartarse ... :laugh:

                    "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

                    "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                    "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                    D D 2 Replies Last reply
                    0
                    • OriginalGriffO OriginalGriff

                      And today you learn that nobody likes a smartarse ... :laugh:

                      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

                      D Offline
                      D Offline
                      DRHuff
                      wrote on last edited by
                      #27

                      OriginalGriff wrote:

                      nobody likes a smartarse

                      Maybe he should brace himself for the reactions to come?

                      If you can't laugh at yourself - ask me and I will do it for you.

                      1 Reply Last reply
                      0
                      • D dandy72

                        I thought about that...but who provides answers as a factorial?

                        C Offline
                        C Offline
                        CPallini
                        wrote on last edited by
                        #28

                        Bernoulli?

                        "In testa che avete, Signor di Ceprano?" -- Rigoletto

                        1 Reply Last reply
                        0
                        • D dbrenth

                          My teacher asked me to write a program on the board and solve it. I wrote:

                          230 - 220 x 0.5

                          and announced that the answer was 5! My teacher claimed I was incorrect, but I was not. Can you please explain it to him? Thanks Hint: My teacher was quite embarrassed when I actually said the answer out loud.

                          Brent

                          C Offline
                          C Offline
                          Chris Maunder
                          wrote on last edited by
                          #29

                          Very clever :thumbsup:

                          cheers Chris Maunder

                          1 Reply Last reply
                          0
                          • C CPallini

                            42. :-D

                            "In testa che avete, Signor di Ceprano?" -- Rigoletto

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

                            42! Looks as windoze coders are lacking kindergartner knowledge of math ... no wonder "fake news " are taking over the world

                            1 Reply Last reply
                            0
                            • K Keith Barrow

                              3! - 1 I think you'll find :) It's curious - nearly everyone I know was taught BODMAS - its the same as PEDMAS, but B=Brackets, O="of". PEDMAS is probably better. Also the great Indian chief "SOH-CAH-TOA". I wonder if they still teach the latter in schools.

                              KeithBarrow.net[^] - It might not be very good, but at least it is free!

                              D Offline
                              D Offline
                              Dougy83
                              wrote on last edited by
                              #31

                              I hadn't heard of PEDMAS before; I'm guessing it's some kind of Hollywood holiday.

                              R 1 Reply Last reply
                              0
                              • D dbrenth

                                My teacher asked me to write a program on the board and solve it. I wrote:

                                230 - 220 x 0.5

                                and announced that the answer was 5! My teacher claimed I was incorrect, but I was not. Can you please explain it to him? Thanks Hint: My teacher was quite embarrassed when I actually said the answer out loud.

                                Brent

                                B Offline
                                B Offline
                                Bob Beechey
                                wrote on last edited by
                                #32

                                The teacher was not embarrassed but shocked that any student could be so wrong. The division MUST be carried out before the subtraction. 230 – 220 × 0.5 = 230 – 110 = 120. Try it in any scientific calculator or programming language. You are alone (I hope) in thinking the answer is 5. Are you perhaps joking?

                                D 1 Reply Last reply
                                0
                                • D Daniel Pfeffer

                                  You are wrong, the teacher is right. The order of precedence in mathematical operations is (mnemonic PEMDAS): Parentheses Exponentiation Multiplication & Division Addition & Subtraction If two operations have the same precedence, they are evaluated from left to right. Your problem may be rewritten as 230 - (220 x 0.5), the answer to which is obviously not 5.

                                  Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

                                  A Offline
                                  A Offline
                                  AnthonyLondon
                                  wrote on last edited by
                                  #33

                                  You write "the answer to which is obviously not 5". Nobody ever said that. The OP sais that he "announced that the answer was 5!". Do you see the difference? The exclamation mark. The answer is 5! (five factorial) and 5!=5*4*3*2*1=120 so 5! is the correct answer :-)

                                  1 Reply Last reply
                                  0
                                  • Greg UtasG Greg Utas

                                    Yeah, you're both on the AR page. :-D

                                    Robust Services Core | Software Techniques for Lemmings | Articles
                                    The fox knows many things, but the hedgehog knows one big thing.

                                    D Offline
                                    D Offline
                                    Daniel Pfeffer
                                    wrote on last edited by
                                    #34

                                    Hey, I resemble that! :mad: :)

                                    Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

                                    1 Reply Last reply
                                    0
                                    • D Daniel Pfeffer

                                      You are wrong, the teacher is right. The order of precedence in mathematical operations is (mnemonic PEMDAS): Parentheses Exponentiation Multiplication & Division Addition & Subtraction If two operations have the same precedence, they are evaluated from left to right. Your problem may be rewritten as 230 - (220 x 0.5), the answer to which is obviously not 5.

                                      Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

                                      M Offline
                                      M Offline
                                      Member 14174460
                                      wrote on last edited by
                                      #35

                                      In the UK they teach BODMAS as the order of precedence Brackets Operations Division MMultiplication AAddition SSubtraction see Order of operations - Year 6 - P7 - Maths - Home Learning with BBC Bitesize - BBC Bitesize[^]

                                      OriginalGriffO 1 Reply Last reply
                                      0
                                      • D Daniel Pfeffer

                                        You are wrong, the teacher is right. The order of precedence in mathematical operations is (mnemonic PEMDAS): Parentheses Exponentiation Multiplication & Division Addition & Subtraction If two operations have the same precedence, they are evaluated from left to right. Your problem may be rewritten as 230 - (220 x 0.5), the answer to which is obviously not 5.

                                        Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

                                        M Offline
                                        M Offline
                                        Member 14174460
                                        wrote on last edited by
                                        #36

                                        In the UK they teach BODMAS as the order of precedence Brackets Operations Division MMultiplication AAddition SSubtraction see Order of operations - Year 6 - P7 - Maths - Home Learning with BBC Bitesize - BBC Bitesize[^]

                                        1 Reply Last reply
                                        0
                                        • M Member 14174460

                                          In the UK they teach BODMAS as the order of precedence Brackets Operations Division MMultiplication AAddition SSubtraction see Order of operations - Year 6 - P7 - Maths - Home Learning with BBC Bitesize - BBC Bitesize[^]

                                          OriginalGriffO Offline
                                          OriginalGriffO Offline
                                          OriginalGriff
                                          wrote on last edited by
                                          #37

                                          Please don't repost if your comment does not appear immediately: both of these went to moderation and required a human being to review them for publication. In order to prevent you being kicked off as a spammer, both had to be accepted, and then I have to clean up the spares. Have a little patience, please! I've deleted the other version.

                                          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

                                          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                                          "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                                          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