Need a simple C++ code which generates subsets of N number of elements - $10 Job

Discussion in 'Programming' started by 007A, May 18, 2009.

  1. #1
    Hello,

    I am looking for someone who can create subsets of an N numbered set. The program should ask the user to enter the total number of elements in the set and then ask for each element of the set. Once this input is taken from the user, the program should calculate the subsets and print all the subsets on the screen. Please don't use object oriented or advanced C++ commands/functions as I might not be able to understand them. Don't worry about the length of the code but don't make it too complicated. I think this program might be done using the concepts of RECURSION but you can do it as you like.

    Here is the example of how the program should look like:-

    Enter number of elements of set: 4
    Enter element 1: 3
    Enter element 2: 6
    Enter element 3: 8
    Enter element 4: 11

    Your output is:-
    {}
    {3}
    {6}
    {8}
    {11}
    {3,6}
    {3,8}
    {3,11}
    {6,8}
    {6,11}
    {8,11}
    {3,6,8}
    {3,6,11}
    {3,8,11}
    {6,8,11}
    {3,6,8,11}

    The program output might differ a little bit but the sequence of subsets should be in the order shown.

    I need this job done immediately and I can pay $10 via paypal after the work has been done.

    Please reply here or PM me for queries etc.

    Thank you!
     
    007A, May 18, 2009 IP
  2. host102

    host102 Peon

    Messages:
    235
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    I can do this real quick.
     
    host102, May 18, 2009 IP
  3. 007A

    007A Banned

    Messages:
    1,295
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    I am still looking for someone who can do this job for me.
     
    007A, May 18, 2009 IP
  4. ngcoders

    ngcoders Active Member

    Messages:
    206
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    ngcoders, May 18, 2009 IP
  5. saxford

    saxford Well-Known Member

    Messages:
    144
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    136
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #5
    I finished your work.
    If you still need it.
    PM ,msn or mail to me.
     
    saxford, May 18, 2009 IP
  6. 007A

    007A Banned

    Messages:
    1,295
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #6
    Hello,

    If you have made the code, then send me the exe file. I am not asking for source code, once I think exe file is correct I will pay you and then you can send source code file.

    Thanks.
     
    007A, May 19, 2009 IP
  7. 007A

    007A Banned

    Messages:
    1,295
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #7
    Done...saxford has completed the task...payment done...thnx
     
    007A, May 19, 2009 IP
  8. it career

    it career Notable Member

    Messages:
    3,562
    Likes Received:
    155
    Best Answers:
    0
    Trophy Points:
    270
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #8
    Feel free to PM me in case you get struck in C/C++ program in future :D .
     
    it career, May 20, 2009 IP