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. reply urgently

reply urgently

Scheduled Pinned Locked Moved The Lounge
30 Posts 23 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.
  • A Ashishhcst2001

    One of the proofs of modern mathematics is George Cantors demonstration that the set of rational numbers is enumerable.This proof works by using an explicit enumeration of rational numbers as shown below 1/1 1/2 1/3 1/4 1/5 .... 2/1 2/2 2/3 2/4 3/1 3/2 3/3 4/1 4/2 5/1 In the time above the first term is 1/1 second is 1/2 ,the third is 2/2,the fourth term is 3/1,the fifth is 2/2 and so on. INPUT AND OUTPUT You are to write a program that will read a list of numbers in the range from 1 to 10 raised to the power 7 and will print for each number the corresponding cantor's enumeration as given below.No blank line should appear after the last number. Th einput list contains a single number per line and will be terminated by the end of -file. SAMPLE INPUT 3 14 7 SAMPLE OUTPUT TERM 3 is 2/1 TERM 14 is 2/4 Term 7 is 1/4 Lov u all

    C Offline
    C Offline
    code frog 0
    wrote on last edited by
    #6

    Okay it's finished. It can be done at least. Now it's your turn. You give it a try. Post your completed effort in the forum of whatever language you have to do it in (You kind of left that out.) and we'll grade it for you. We grade on the following:

    • Is it your code and actually written by you? In most cases the professor can tell and so can we.
    • Was your solution posted in the right forum? The professor will be looking don't make it to hard on him so put it in the right place.
    • Were you able to solve the problem with your submitted code? We'll know that for sure.

    Bonus Trivia: Did you know that my professor checked out Code Project, Code Guru and Rent A Coder to see if his assignment had been posted there? Then it was easy to spot the fake when turned it. It looked just like the answer that was posted. Maybe yours does to, you might want to consider that. Well, best of luck to you. I'll compare my answers with yours as soon as I see yours. - Rex

    I only read CP for the articles. Code-frog System Architects, Inc.

    M 1 Reply Last reply
    0
    • A Ashishhcst2001

      One of the proofs of modern mathematics is George Cantors demonstration that the set of rational numbers is enumerable.This proof works by using an explicit enumeration of rational numbers as shown below 1/1 1/2 1/3 1/4 1/5 .... 2/1 2/2 2/3 2/4 3/1 3/2 3/3 4/1 4/2 5/1 In the time above the first term is 1/1 second is 1/2 ,the third is 2/2,the fourth term is 3/1,the fifth is 2/2 and so on. INPUT AND OUTPUT You are to write a program that will read a list of numbers in the range from 1 to 10 raised to the power 7 and will print for each number the corresponding cantor's enumeration as given below.No blank line should appear after the last number. Th einput list contains a single number per line and will be terminated by the end of -file. SAMPLE INPUT 3 14 7 SAMPLE OUTPUT TERM 3 is 2/1 TERM 14 is 2/4 Term 7 is 1/4 Lov u all

      J Offline
      J Offline
      Jerry Hammond
      wrote on last edited by
      #7

      Try This[^] My Programming Library C#, C# Run

      1 Reply Last reply
      0
      • A Ashishhcst2001

        One of the proofs of modern mathematics is George Cantors demonstration that the set of rational numbers is enumerable.This proof works by using an explicit enumeration of rational numbers as shown below 1/1 1/2 1/3 1/4 1/5 .... 2/1 2/2 2/3 2/4 3/1 3/2 3/3 4/1 4/2 5/1 In the time above the first term is 1/1 second is 1/2 ,the third is 2/2,the fourth term is 3/1,the fifth is 2/2 and so on. INPUT AND OUTPUT You are to write a program that will read a list of numbers in the range from 1 to 10 raised to the power 7 and will print for each number the corresponding cantor's enumeration as given below.No blank line should appear after the last number. Th einput list contains a single number per line and will be terminated by the end of -file. SAMPLE INPUT 3 14 7 SAMPLE OUTPUT TERM 3 is 2/1 TERM 14 is 2/4 Term 7 is 1/4 Lov u all

        B Offline
        B Offline
        Brian Van Beek
        wrote on last edited by
        #8

        check out the posts this person has been posting... link[^] can we ban them...please.... Brian Van Beek Inside this room, all of my dreams become realities, and some of my realities become dreams. -Willy Wonka Read my Blog, I know you want to... [^]

        1 Reply Last reply
        0
        • A Ashishhcst2001

          One of the proofs of modern mathematics is George Cantors demonstration that the set of rational numbers is enumerable.This proof works by using an explicit enumeration of rational numbers as shown below 1/1 1/2 1/3 1/4 1/5 .... 2/1 2/2 2/3 2/4 3/1 3/2 3/3 4/1 4/2 5/1 In the time above the first term is 1/1 second is 1/2 ,the third is 2/2,the fourth term is 3/1,the fifth is 2/2 and so on. INPUT AND OUTPUT You are to write a program that will read a list of numbers in the range from 1 to 10 raised to the power 7 and will print for each number the corresponding cantor's enumeration as given below.No blank line should appear after the last number. Th einput list contains a single number per line and will be terminated by the end of -file. SAMPLE INPUT 3 14 7 SAMPLE OUTPUT TERM 3 is 2/1 TERM 14 is 2/4 Term 7 is 1/4 Lov u all

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

          #include void main() { printf("I posted a message on CodeProject.com\n"); printf("asking someone else to do my homework\n"); printf("for me. No one would.\n"); printf("New excuse: My dog ate my homework"\n); } Steve

          1 Reply Last reply
          0
          • A Ashishhcst2001

            One of the proofs of modern mathematics is George Cantors demonstration that the set of rational numbers is enumerable.This proof works by using an explicit enumeration of rational numbers as shown below 1/1 1/2 1/3 1/4 1/5 .... 2/1 2/2 2/3 2/4 3/1 3/2 3/3 4/1 4/2 5/1 In the time above the first term is 1/1 second is 1/2 ,the third is 2/2,the fourth term is 3/1,the fifth is 2/2 and so on. INPUT AND OUTPUT You are to write a program that will read a list of numbers in the range from 1 to 10 raised to the power 7 and will print for each number the corresponding cantor's enumeration as given below.No blank line should appear after the last number. Th einput list contains a single number per line and will be terminated by the end of -file. SAMPLE INPUT 3 14 7 SAMPLE OUTPUT TERM 3 is 2/1 TERM 14 is 2/4 Term 7 is 1/4 Lov u all

            S Offline
            S Offline
            Super Lloyd
            wrote on last edited by
            #10

            Did code-frog mention you'll have 100 BONUS POINTS if you post the right answer in C#? ;P

            S 1 Reply Last reply
            0
            • S Super Lloyd

              Did code-frog mention you'll have 100 BONUS POINTS if you post the right answer in C#? ;P

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

              200 bonus points if the answer is done in Algol, Snobol or Mumps, 300 bonus points if the answer is done in Ancient Greek and 500 bonus points if it is done in hieroglyphics. Steve

              S L L G 4 Replies Last reply
              0
              • S Steve Mayfield

                200 bonus points if the answer is done in Algol, Snobol or Mumps, 300 bonus points if the answer is done in Ancient Greek and 500 bonus points if it is done in hieroglyphics. Steve

                S Offline
                S Offline
                Super Lloyd
                wrote on last edited by
                #12

                Woa... I might try to formulate the answer myself in hieroglyphs... :laugh:

                1 Reply Last reply
                0
                • S Steve Mayfield

                  200 bonus points if the answer is done in Algol, Snobol or Mumps, 300 bonus points if the answer is done in Ancient Greek and 500 bonus points if it is done in hieroglyphics. Steve

                  L Offline
                  L Offline
                  leppie
                  wrote on last edited by
                  #13

                  Steve Mayfield wrote:

                  500 bonus points if it is done in hieroglyphics.

                  10000 points if done on an abacus :)

                  xacc.ide-0.1.2.15
                  Now with a grid!

                  V 1 Reply Last reply
                  0
                  • L leppie

                    Steve Mayfield wrote:

                    500 bonus points if it is done in hieroglyphics.

                    10000 points if done on an abacus :)

                    xacc.ide-0.1.2.15
                    Now with a grid!

                    V Offline
                    V Offline
                    Vikram A Punathambekar
                    wrote on last edited by
                    #14

                    A bajillion points if done in the mind. Oh wait, that can be exploited like this[^]. :doh: Cheers, Vikram.


                    "When I read in books about a "base class", I figured this was the class that was at the bottom of the inheritence tree. It's the "base", right? Like the base of a pyramid." - Marc Clifton.

                    1 Reply Last reply
                    0
                    • A Ashishhcst2001

                      One of the proofs of modern mathematics is George Cantors demonstration that the set of rational numbers is enumerable.This proof works by using an explicit enumeration of rational numbers as shown below 1/1 1/2 1/3 1/4 1/5 .... 2/1 2/2 2/3 2/4 3/1 3/2 3/3 4/1 4/2 5/1 In the time above the first term is 1/1 second is 1/2 ,the third is 2/2,the fourth term is 3/1,the fifth is 2/2 and so on. INPUT AND OUTPUT You are to write a program that will read a list of numbers in the range from 1 to 10 raised to the power 7 and will print for each number the corresponding cantor's enumeration as given below.No blank line should appear after the last number. Th einput list contains a single number per line and will be terminated by the end of -file. SAMPLE INPUT 3 14 7 SAMPLE OUTPUT TERM 3 is 2/1 TERM 14 is 2/4 Term 7 is 1/4 Lov u all

                      A Offline
                      A Offline
                      Alvaro Mendez
                      wrote on last edited by
                      #15

                      urgently. :rolleyes: Lov u 2.


                      ... now you see that Evil will always triumph, because Good is dumb. - Dark Helmet

                      1 Reply Last reply
                      0
                      • S Steve Mayfield

                        200 bonus points if the answer is done in Algol, Snobol or Mumps, 300 bonus points if the answer is done in Ancient Greek and 500 bonus points if it is done in hieroglyphics. Steve

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

                        Good weather for this turning into a Snobol fight :rolleyes: The tigress is here :-D

                        1 Reply Last reply
                        0
                        • A Ashishhcst2001

                          One of the proofs of modern mathematics is George Cantors demonstration that the set of rational numbers is enumerable.This proof works by using an explicit enumeration of rational numbers as shown below 1/1 1/2 1/3 1/4 1/5 .... 2/1 2/2 2/3 2/4 3/1 3/2 3/3 4/1 4/2 5/1 In the time above the first term is 1/1 second is 1/2 ,the third is 2/2,the fourth term is 3/1,the fifth is 2/2 and so on. INPUT AND OUTPUT You are to write a program that will read a list of numbers in the range from 1 to 10 raised to the power 7 and will print for each number the corresponding cantor's enumeration as given below.No blank line should appear after the last number. Th einput list contains a single number per line and will be terminated by the end of -file. SAMPLE INPUT 3 14 7 SAMPLE OUTPUT TERM 3 is 2/1 TERM 14 is 2/4 Term 7 is 1/4 Lov u all

                          P Offline
                          P Offline
                          peterchen
                          wrote on last edited by
                          #17

                          Ashishhcst2001 wrote:

                          reply urgently

                          *huf* *huff* Reply! Did I make it?


                          Some of us walk the memory lane, others plummet into a rabbit hole
                          Tree in C# || Fold With Us! || sighist

                          1 Reply Last reply
                          0
                          • A Ashishhcst2001

                            One of the proofs of modern mathematics is George Cantors demonstration that the set of rational numbers is enumerable.This proof works by using an explicit enumeration of rational numbers as shown below 1/1 1/2 1/3 1/4 1/5 .... 2/1 2/2 2/3 2/4 3/1 3/2 3/3 4/1 4/2 5/1 In the time above the first term is 1/1 second is 1/2 ,the third is 2/2,the fourth term is 3/1,the fifth is 2/2 and so on. INPUT AND OUTPUT You are to write a program that will read a list of numbers in the range from 1 to 10 raised to the power 7 and will print for each number the corresponding cantor's enumeration as given below.No blank line should appear after the last number. Th einput list contains a single number per line and will be terminated by the end of -file. SAMPLE INPUT 3 14 7 SAMPLE OUTPUT TERM 3 is 2/1 TERM 14 is 2/4 Term 7 is 1/4 Lov u all

                            N Offline
                            N Offline
                            NormDroid
                            wrote on last edited by
                            #18

                            <Broken English> I know answer, but not tell you, becoz that be cheating. </Broken English> Blogless

                            1 Reply Last reply
                            0
                            • S Steve Mayfield

                              200 bonus points if the answer is done in Algol, Snobol or Mumps, 300 bonus points if the answer is done in Ancient Greek and 500 bonus points if it is done in hieroglyphics. Steve

                              G Offline
                              G Offline
                              Gary R Wheeler
                              wrote on last edited by
                              #19

                              Steve Mayfield wrote:

                              hieroglyphics

                              Also known as APL.


                              Software Zen: delete this;

                              Fold With Us![^]

                              1 Reply Last reply
                              0
                              • D David Stone

                                Are you kidding? Nobody here is going to do your homework for you.

                                If dreams are like movies Then memories are films about ghosts You can never escape You can only move south down the coast

                                Hey Mrs. Potter, don't cry...

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

                                Aw come on... he even said "Lov u all". :) /ravi My new year's resolution: 2048 x 1536 Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com

                                1 Reply Last reply
                                0
                                • A Ashishhcst2001

                                  One of the proofs of modern mathematics is George Cantors demonstration that the set of rational numbers is enumerable.This proof works by using an explicit enumeration of rational numbers as shown below 1/1 1/2 1/3 1/4 1/5 .... 2/1 2/2 2/3 2/4 3/1 3/2 3/3 4/1 4/2 5/1 In the time above the first term is 1/1 second is 1/2 ,the third is 2/2,the fourth term is 3/1,the fifth is 2/2 and so on. INPUT AND OUTPUT You are to write a program that will read a list of numbers in the range from 1 to 10 raised to the power 7 and will print for each number the corresponding cantor's enumeration as given below.No blank line should appear after the last number. Th einput list contains a single number per line and will be terminated by the end of -file. SAMPLE INPUT 3 14 7 SAMPLE OUTPUT TERM 3 is 2/1 TERM 14 is 2/4 Term 7 is 1/4 Lov u all

                                  T Offline
                                  T Offline
                                  TheGreatAndPowerfulOz
                                  wrote on last edited by
                                  #21

                                  do your own homework jackass

                                  N P 2 Replies Last reply
                                  0
                                  • T TheGreatAndPowerfulOz

                                    do your own homework jackass

                                    N Offline
                                    N Offline
                                    NormDroid
                                    wrote on last edited by
                                    #22

                                    ahz wrote:

                                    do your own homework jackass

                                    Arrrhh subtlety at it's finest. Blogless

                                    1 Reply Last reply
                                    0
                                    • T TheGreatAndPowerfulOz

                                      do your own homework jackass

                                      P Offline
                                      P Offline
                                      Paul Conrad
                                      wrote on last edited by
                                      #23

                                      ahz wrote:

                                      do your own homework jackass

                                      When I started programming in the early 1980's we didn't have the forums like this to mooch off of, instead we used a thing called the brain :) PC

                                      realJSOPR D T 3 Replies Last reply
                                      0
                                      • C code frog 0

                                        Okay it's finished. It can be done at least. Now it's your turn. You give it a try. Post your completed effort in the forum of whatever language you have to do it in (You kind of left that out.) and we'll grade it for you. We grade on the following:

                                        • Is it your code and actually written by you? In most cases the professor can tell and so can we.
                                        • Was your solution posted in the right forum? The professor will be looking don't make it to hard on him so put it in the right place.
                                        • Were you able to solve the problem with your submitted code? We'll know that for sure.

                                        Bonus Trivia: Did you know that my professor checked out Code Project, Code Guru and Rent A Coder to see if his assignment had been posted there? Then it was easy to spot the fake when turned it. It looked just like the answer that was posted. Maybe yours does to, you might want to consider that. Well, best of luck to you. I'll compare my answers with yours as soon as I see yours. - Rex

                                        I only read CP for the articles. Code-frog System Architects, Inc.

                                        M Offline
                                        M Offline
                                        Matt Gerrans
                                        wrote on last edited by
                                        #24

                                        Bonus Trivia: Did you know that my professor checked out Code Project, Code Guru and Rent A Coder to see if his assignment had been posted there? Then it was easy to spot the fake when turned it. It looked just like the answer that was posted... Even more fun, if you are a prof, post the answer! Then you can put in some very specific cues that will make it a snap to find the cheaters. I just don't understand why people want to cheat on homework anyway. If you don't like programming, change your major. If you don't like learning, drop out of school. It is so pathetic when you interview people who have a BSCS (or even MSCS sometimes) who cannot answer even the most basic programming questions and don't even seem to be interested in the subject. If you don't like the field, get out! Please. Find something that excites you and that are passionate about. You and everyone you work with will be the better for it. It is an important life choice; it is better to enjoy your work then to go into some field only because you think the salary may be good. Most of the incompetent programmers I've worked with are very unhappy. They try to cover it up, but they and everyone else around them know they are not pulling their weight. When it comes time to deliver and someone else always has to come in and pretty much do all their work, they still have to be there and take a lot of heat about why they didn't get the thing done and they are usually the ones working ridiculous hours (not that it helps much) to try and make up. They are very stressed out and unhappy and they know they don't have the respect of their peers. It is not a good life. It will eat away at you and make your whole life suffer. If your salary is good, that will only make things worse, because it will only make you feel like a thief. You should also consider the fact that the average salary may be good, but if you suck, then you will likely be well below average in pay as well. (Although, salaries often don't match competence and productivity as closely as they should, unfortunately.) Additionally, you will have a hard time getting a job, at least at companies that have good interview processes. You will likely be one of those dead-wood employees that stays at some place a long, long time, getting shuffled from group to group and put on unimportant projects, where you can do the least damage. Does that sound like an exciting and worthwhile career? If you are thinking that you want to get into softwar

                                        C E 2 Replies Last reply
                                        0
                                        • M Matt Gerrans

                                          Bonus Trivia: Did you know that my professor checked out Code Project, Code Guru and Rent A Coder to see if his assignment had been posted there? Then it was easy to spot the fake when turned it. It looked just like the answer that was posted... Even more fun, if you are a prof, post the answer! Then you can put in some very specific cues that will make it a snap to find the cheaters. I just don't understand why people want to cheat on homework anyway. If you don't like programming, change your major. If you don't like learning, drop out of school. It is so pathetic when you interview people who have a BSCS (or even MSCS sometimes) who cannot answer even the most basic programming questions and don't even seem to be interested in the subject. If you don't like the field, get out! Please. Find something that excites you and that are passionate about. You and everyone you work with will be the better for it. It is an important life choice; it is better to enjoy your work then to go into some field only because you think the salary may be good. Most of the incompetent programmers I've worked with are very unhappy. They try to cover it up, but they and everyone else around them know they are not pulling their weight. When it comes time to deliver and someone else always has to come in and pretty much do all their work, they still have to be there and take a lot of heat about why they didn't get the thing done and they are usually the ones working ridiculous hours (not that it helps much) to try and make up. They are very stressed out and unhappy and they know they don't have the respect of their peers. It is not a good life. It will eat away at you and make your whole life suffer. If your salary is good, that will only make things worse, because it will only make you feel like a thief. You should also consider the fact that the average salary may be good, but if you suck, then you will likely be well below average in pay as well. (Although, salaries often don't match competence and productivity as closely as they should, unfortunately.) Additionally, you will have a hard time getting a job, at least at companies that have good interview processes. You will likely be one of those dead-wood employees that stays at some place a long, long time, getting shuffled from group to group and put on unimportant projects, where you can do the least damage. Does that sound like an exciting and worthwhile career? If you are thinking that you want to get into softwar

                                          C Offline
                                          C Offline
                                          code frog 0
                                          wrote on last edited by
                                          #25

                                          This should be etched in PhotoShop stone and it should be the one image we are allowed to click/insert into replies. It would make our lives easier and might even help a few wanna-be's figure it out.:laugh:

                                          I only read CP for the articles. Code-frog System Architects, Inc.

                                          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