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. State Machine

State Machine

Scheduled Pinned Locked Moved The Lounge
jsonquestion
22 Posts 17 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.
  • P Paul M Watt

    My seven year old daughter usually goes to her grandma's house on Friday nights, and she just got home from school and she wanted to call her grandma, but I told her she needed to wait two hours. So she asked my for a piece of paper and a pencil and came back 10 minutes later and said "This is my map of what I am going to do." She handed me a state machine diagram with pictures and everything of all of the cases will happen tonight, this is what it looked like (minus the pretty pictures):

                                                Take a nap
                                                and wake up
                                                     |
                                                     |
                                                     V
                                              Call her at work
                                                     |
                                                     |
                            -----------------------------------------------------
                            |                        |                          |             
                            |                        |                          |             
                            |                        |                          |             
                     Grandma does              She comes to                She has to     
            -------> not feel well                 get me                   work late--------|
            |               |                        |                          |            |
            |---------------+------------------------+--------------------------+------------|
                            |                        |                          |                        
                            V                        V                          |
                      I will stay             I will stay at                    |  
                        at home                 my grandma's  <------------------
    

    It blew me away, I was very impressed. I asked her if they taught her that in school, and she said no. She just thought of that so she wouldn't forget what she was suuposed to do after her nap. What do you guys think?


    Build a man a fire, and he will be warm for a day
    Light a man on fire, and he will be warm for the rest of his life!

    C Offline
    C Offline
    ColinDavies
    wrote on last edited by
    #8

    Mate, that is astonishing, You can really see that she has logical structures. If my 8 yr old son did similar, I'd be teaching him to code now. (he is into creative writing instead ) (I'll publish something here in the lounge sometime because it is darn good for a kid) Regardz Colin J Davies

    Sonork ID 100.9197:Colin

    More about me :-)

    1 Reply Last reply
    0
    • P Paul M Watt

      My seven year old daughter usually goes to her grandma's house on Friday nights, and she just got home from school and she wanted to call her grandma, but I told her she needed to wait two hours. So she asked my for a piece of paper and a pencil and came back 10 minutes later and said "This is my map of what I am going to do." She handed me a state machine diagram with pictures and everything of all of the cases will happen tonight, this is what it looked like (minus the pretty pictures):

                                                  Take a nap
                                                  and wake up
                                                       |
                                                       |
                                                       V
                                                Call her at work
                                                       |
                                                       |
                              -----------------------------------------------------
                              |                        |                          |             
                              |                        |                          |             
                              |                        |                          |             
                       Grandma does              She comes to                She has to     
              -------> not feel well                 get me                   work late--------|
              |               |                        |                          |            |
              |---------------+------------------------+--------------------------+------------|
                              |                        |                          |                        
                              V                        V                          |
                        I will stay             I will stay at                    |  
                          at home                 my grandma's  <------------------
      

      It blew me away, I was very impressed. I asked her if they taught her that in school, and she said no. She just thought of that so she wouldn't forget what she was suuposed to do after her nap. What do you guys think?


      Build a man a fire, and he will be warm for a day
      Light a man on fire, and he will be warm for the rest of his life!

      M Offline
      M Offline
      Michael A Barnhart
      wrote on last edited by
      #9

      Ditto on being impressed. To be conscious that you are ignorant of the facts is a great step towards Knowledge. Benjamin Disraeli

      1 Reply Last reply
      0
      • P Paul M Watt

        My seven year old daughter usually goes to her grandma's house on Friday nights, and she just got home from school and she wanted to call her grandma, but I told her she needed to wait two hours. So she asked my for a piece of paper and a pencil and came back 10 minutes later and said "This is my map of what I am going to do." She handed me a state machine diagram with pictures and everything of all of the cases will happen tonight, this is what it looked like (minus the pretty pictures):

                                                    Take a nap
                                                    and wake up
                                                         |
                                                         |
                                                         V
                                                  Call her at work
                                                         |
                                                         |
                                -----------------------------------------------------
                                |                        |                          |             
                                |                        |                          |             
                                |                        |                          |             
                         Grandma does              She comes to                She has to     
                -------> not feel well                 get me                   work late--------|
                |               |                        |                          |            |
                |---------------+------------------------+--------------------------+------------|
                                |                        |                          |                        
                                V                        V                          |
                          I will stay             I will stay at                    |  
                            at home                 my grandma's  <------------------
        

        It blew me away, I was very impressed. I asked her if they taught her that in school, and she said no. She just thought of that so she wouldn't forget what she was suuposed to do after her nap. What do you guys think?


        Build a man a fire, and he will be warm for a day
        Light a man on fire, and he will be warm for the rest of his life!

        J Offline
        J Offline
        James T Johnson
        wrote on last edited by
        #10

        :omg: You have a bright daughter! James

        1 Reply Last reply
        0
        • J Jeremy Falcon

          Wow! Must be dem good genes. When I was that age I was still playing in the ditch and eating dirt. :) Jeremy L. Falcon Homepage : Sonork = 100.16311
          "It was a blind man who taught me how to see." - Aerosmith

          R Offline
          R Offline
          Roger Wright
          wrote on last edited by
          #11

          Jeremy Falcon wrote: I was still playing in the ditch and eating dirt. Why did you give it up? The simple pleasures are the nicest... "What is it?" and he said, "I don't know. Let's kill it." - Ed Gadziemski

          J 1 Reply Last reply
          0
          • R Roger Wright

            Jeremy Falcon wrote: I was still playing in the ditch and eating dirt. Why did you give it up? The simple pleasures are the nicest... "What is it?" and he said, "I don't know. Let's kill it." - Ed Gadziemski

            J Offline
            J Offline
            Jon Newman
            wrote on last edited by
            #12

            Roger Wright wrote: Why did you give it up? The simple pleasures are the nicest... Who said he gave it up?

            Jonny Newman Liverpool, UK Sonork: 16257:Jonny Newman MSN Msngr: jonathann4@hotmail.com ICQ: 37606329 and now..... nonny@nonny.com I'm out there! Feel free to contact me about anything.

            S 1 Reply Last reply
            0
            • RaviBeeR RaviBee

              You should be very proud of your little one! I hope you encourage this! See this Lego link for possible ideas. /ravi Let's put "civil" back into "civilization" http://www.ravib.com ravib@ravib.com

              M Offline
              M Offline
              Maximilien
              wrote on last edited by
              #13

              Hey it's not lego, but LOGO ... and that reminds me that I first started programming using LOGO a long time ago ... that was soooo cool ... Max.

              RaviBeeR D 2 Replies Last reply
              0
              • M Maximilien

                Hey it's not lego, but LOGO ... and that reminds me that I first started programming using LOGO a long time ago ... that was soooo cool ... Max.

                RaviBeeR Offline
                RaviBeeR Offline
                RaviBee
                wrote on last edited by
                #14

                Maximilien wrote: Hey it's not lego, but LOGO Ugh, typos like that are embarassing! :-O /ravi Let's put "civil" back into "civilization" http://www.ravib.com ravib@ravib.com

                1 Reply Last reply
                0
                • J Jon Newman

                  Roger Wright wrote: Why did you give it up? The simple pleasures are the nicest... Who said he gave it up?

                  Jonny Newman Liverpool, UK Sonork: 16257:Jonny Newman MSN Msngr: jonathann4@hotmail.com ICQ: 37606329 and now..... nonny@nonny.com I'm out there! Feel free to contact me about anything.

                  S Offline
                  S Offline
                  Simon Walton
                  wrote on last edited by
                  #15

                  Jonny Newman wrote: Who said he gave it up? :laugh: Simon I need your clothes, your boots, and your copy of VS.NET. Sonork ID 100.10024 C++ : The slag of all languages

                  1 Reply Last reply
                  0
                  • P Paul M Watt

                    My seven year old daughter usually goes to her grandma's house on Friday nights, and she just got home from school and she wanted to call her grandma, but I told her she needed to wait two hours. So she asked my for a piece of paper and a pencil and came back 10 minutes later and said "This is my map of what I am going to do." She handed me a state machine diagram with pictures and everything of all of the cases will happen tonight, this is what it looked like (minus the pretty pictures):

                                                                Take a nap
                                                                and wake up
                                                                     |
                                                                     |
                                                                     V
                                                              Call her at work
                                                                     |
                                                                     |
                                            -----------------------------------------------------
                                            |                        |                          |             
                                            |                        |                          |             
                                            |                        |                          |             
                                     Grandma does              She comes to                She has to     
                            -------> not feel well                 get me                   work late--------|
                            |               |                        |                          |            |
                            |---------------+------------------------+--------------------------+------------|
                                            |                        |                          |                        
                                            V                        V                          |
                                      I will stay             I will stay at                    |  
                                        at home                 my grandma's  <------------------
                    

                    It blew me away, I was very impressed. I asked her if they taught her that in school, and she said no. She just thought of that so she wouldn't forget what she was suuposed to do after her nap. What do you guys think?


                    Build a man a fire, and he will be warm for a day
                    Light a man on fire, and he will be warm for the rest of his life!

                    L Offline
                    L Offline
                    l a u r e n
                    wrote on last edited by
                    #16

                    rok and roll score one for the chiks ;)


                    "... and so i said to him ... if it don't dance (or code) and you can't eat it either f**k it or throw it away"
                    sonork: 100.18128   8028finder.com

                    1 Reply Last reply
                    0
                    • P Paul M Watt

                      My seven year old daughter usually goes to her grandma's house on Friday nights, and she just got home from school and she wanted to call her grandma, but I told her she needed to wait two hours. So she asked my for a piece of paper and a pencil and came back 10 minutes later and said "This is my map of what I am going to do." She handed me a state machine diagram with pictures and everything of all of the cases will happen tonight, this is what it looked like (minus the pretty pictures):

                                                                  Take a nap
                                                                  and wake up
                                                                       |
                                                                       |
                                                                       V
                                                                Call her at work
                                                                       |
                                                                       |
                                              -----------------------------------------------------
                                              |                        |                          |             
                                              |                        |                          |             
                                              |                        |                          |             
                                       Grandma does              She comes to                She has to     
                              -------> not feel well                 get me                   work late--------|
                              |               |                        |                          |            |
                              |---------------+------------------------+--------------------------+------------|
                                              |                        |                          |                        
                                              V                        V                          |
                                        I will stay             I will stay at                    |  
                                          at home                 my grandma's  <------------------
                      

                      It blew me away, I was very impressed. I asked her if they taught her that in school, and she said no. She just thought of that so she wouldn't forget what she was suuposed to do after her nap. What do you guys think?


                      Build a man a fire, and he will be warm for a day
                      Light a man on fire, and he will be warm for the rest of his life!

                      E Offline
                      E Offline
                      Ed Gadziemski
                      wrote on last edited by
                      #17

                      Excellent! By the time she's 10, she'll be President of the world.

                      1 Reply Last reply
                      0
                      • P Paul M Watt

                        My seven year old daughter usually goes to her grandma's house on Friday nights, and she just got home from school and she wanted to call her grandma, but I told her she needed to wait two hours. So she asked my for a piece of paper and a pencil and came back 10 minutes later and said "This is my map of what I am going to do." She handed me a state machine diagram with pictures and everything of all of the cases will happen tonight, this is what it looked like (minus the pretty pictures):

                                                                    Take a nap
                                                                    and wake up
                                                                         |
                                                                         |
                                                                         V
                                                                  Call her at work
                                                                         |
                                                                         |
                                                -----------------------------------------------------
                                                |                        |                          |             
                                                |                        |                          |             
                                                |                        |                          |             
                                         Grandma does              She comes to                She has to     
                                -------> not feel well                 get me                   work late--------|
                                |               |                        |                          |            |
                                |---------------+------------------------+--------------------------+------------|
                                                |                        |                          |                        
                                                V                        V                          |
                                          I will stay             I will stay at                    |  
                                            at home                 my grandma's  <------------------
                        

                        It blew me away, I was very impressed. I asked her if they taught her that in school, and she said no. She just thought of that so she wouldn't forget what she was suuposed to do after her nap. What do you guys think?


                        Build a man a fire, and he will be warm for a day
                        Light a man on fire, and he will be warm for the rest of his life!

                        D Offline
                        D Offline
                        David Stone
                        wrote on last edited by
                        #18

                        Too bad she's not 15. :-D Just kidding man. I wouldn't want to steal your brilliant "little girl" away from you. But seriously, the diagram is awesome. Gonna teach her to be a coder? She obviously has exceptional logical abilities. You should even consider putting her in the NFL(National Forensics League, a huge debate league most high schools participate in) when she's in High School. David Stone dstone@newcenturytitle.com
                        MEEKNESS, n. Uncommon patience in planning a revenge that is worth while. The Devil's Dictionary, Ambrose Bierce

                        R 1 Reply Last reply
                        0
                        • D David Stone

                          Too bad she's not 15. :-D Just kidding man. I wouldn't want to steal your brilliant "little girl" away from you. But seriously, the diagram is awesome. Gonna teach her to be a coder? She obviously has exceptional logical abilities. You should even consider putting her in the NFL(National Forensics League, a huge debate league most high schools participate in) when she's in High School. David Stone dstone@newcenturytitle.com
                          MEEKNESS, n. Uncommon patience in planning a revenge that is worth while. The Devil's Dictionary, Ambrose Bierce

                          R Offline
                          R Offline
                          Roger Wright
                          wrote on last edited by
                          #19

                          It's a shame Microsoft stopped distributing simple, free programming stuff like mbasic, basica, qbasic with the OS. Although useless for production work, the various free BASICs were great learning toys for the curious. "What is it?" and he said, "I don't know. Let's kill it." - Ed Gadziemski

                          1 Reply Last reply
                          0
                          • P Paul M Watt

                            My seven year old daughter usually goes to her grandma's house on Friday nights, and she just got home from school and she wanted to call her grandma, but I told her she needed to wait two hours. So she asked my for a piece of paper and a pencil and came back 10 minutes later and said "This is my map of what I am going to do." She handed me a state machine diagram with pictures and everything of all of the cases will happen tonight, this is what it looked like (minus the pretty pictures):

                                                                        Take a nap
                                                                        and wake up
                                                                             |
                                                                             |
                                                                             V
                                                                      Call her at work
                                                                             |
                                                                             |
                                                    -----------------------------------------------------
                                                    |                        |                          |             
                                                    |                        |                          |             
                                                    |                        |                          |             
                                             Grandma does              She comes to                She has to     
                                    -------> not feel well                 get me                   work late--------|
                                    |               |                        |                          |            |
                                    |---------------+------------------------+--------------------------+------------|
                                                    |                        |                          |                        
                                                    V                        V                          |
                                              I will stay             I will stay at                    |  
                                                at home                 my grandma's  <------------------
                            

                            It blew me away, I was very impressed. I asked her if they taught her that in school, and she said no. She just thought of that so she wouldn't forget what she was suuposed to do after her nap. What do you guys think?


                            Build a man a fire, and he will be warm for a day
                            Light a man on fire, and he will be warm for the rest of his life!

                            N Offline
                            N Offline
                            Nish Nishant
                            wrote on last edited by
                            #20

                            kilowatt wrote: What do you guys think? She's your daughter eh? Then I am not surprised at all. She inherited Papa's braisn luckily :-) Nish


                            Author of the romantic comedy Summer Love and Some more Cricket [New Win] Buy it, read it and admire me :-)

                            1 Reply Last reply
                            0
                            • J Jeremy Falcon

                              Wow! Must be dem good genes. When I was that age I was still playing in the ditch and eating dirt. :) Jeremy L. Falcon Homepage : Sonork = 100.16311
                              "It was a blind man who taught me how to see." - Aerosmith

                              D Offline
                              D Offline
                              Dave Loeser
                              wrote on last edited by
                              #21

                              I'm with you Jeremy, at 7-8 I was playing with Tonka trucks in a big dirt pile... I have to admit... I ate my share of dirt too :laugh: Dave "Dak Lozar" Loeser

                              1 Reply Last reply
                              0
                              • M Maximilien

                                Hey it's not lego, but LOGO ... and that reminds me that I first started programming using LOGO a long time ago ... that was soooo cool ... Max.

                                D Offline
                                D Offline
                                Dave Loeser
                                wrote on last edited by
                                #22

                                Wow - and it's not just a programming language any more... it's a philosophy! :rose: Dave "Dak Lozar" Loeser

                                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