3$ paid for simple code

This is a discussion on 3$ paid for simple code within the C Programming forums, part of the General Programming Boards category; Ill send 3$ via paypal for the successful completion of the following assignment: This problem will exercise both your modular ...

  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    18

    3$ paid for simple code

    Ill send 3$ via paypal for the successful completion of the following assignment:

    This problem will exercise both your modular programming skills, keeping track of lists and using the random number generators. We wish to produce 6 random numbers between the number 1 and 46. The program must run until a command is given to halt execution. During each pass, the program will prompt the user to hit enter, upon hitting enter, the program will produce 6 exclusive random numbers between 1 and 46. They need not appear in order and there must be no duplicates.



    Below is a list of the function prototypes that can be used :



    void ClearLOTTO (void);

    int GetLOTTO (void);

    int DUPLICATE (int Curr_Num);

    void newline (int Num_Lines);



    Implementation Details:



    - You must use the function rand and srand to produce the random numbers.

    - The system time will be used as a seed.

    - Only integers between and including the numbers 1 to 46 must be used.

    - The program must run until a command is entered to halt the program.

    - The main routine only makes calls to user-defined functions except for a simple loop statement to control execution.

    Hint: You may use a global variable such as int Lotto[6];


    Example Output:


    ENTER C TO CONTINUE OR ANY OTHER CHARACTER TO STOP: C


    RUN NUMBER 1: 5 6 9 12 46 13


    ENTER C TO CONTINUE OR ANY OTHER CHARACTER TO STOP: C


    RUN NUMBER 2: 12 1 3 18 42 10


    ENTER C TO CONTINUE OR ANY OTHER CHARACTER TO STOP: H


    THANK YOU FOR PLAYING OUR GAME.

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    18
    must be posted by fri march 7 at noon
    and ill message who ever posted it and send 3$
    NO JOKE

  3. #3
    .........
    Join Date
    Nov 2002
    Posts
    303
    What happens when you finish the class and don't learn anything, why take the class if your not going to learn anything? I don't understand. I'd help but then you wouldn't learn anything. Isn't the point of going to school to learn?

  4. #4
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    well for $3 im afraid you can only afford 5 seconds of my time...
    heres how far i got in that time....
    Code:
    #include<stdio.h>
    
    void ClearLOTTO (void);
    int GetLOTTO (void);
    int DUPLICATE (int Curr_Num);
    void newline (int Num_Lines);
    
    int main(voi
    Dang it ur time just ran out. but if you have more cash to buy more 5 second segments we could finish this. btw u owe me $3
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  5. #5
    Registered User
    Join Date
    Jan 2003
    Posts
    115
    lol $3

    do your own work at least give it a try
    there are only 10 people in the world, those who know binary and those who dont

  6. #6
    Registered User
    Join Date
    Mar 2003
    Posts
    18
    I figure that this forum would house the most intelligent and helpful programmers so I guessed 3 dollars would be suffient for 10 minutes of thoughtlessness.
    This class is necessary to have full 12 hour credit and does not help my major.
    I tried this program, but failed miserably

  7. #7
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    I tried this program, but failed miserably
    Then where is your attempt so we can show you how to fix it. You will never get your assignments done here but you will on the other hand get help fixing your code if you show that you have actually written some.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  8. #8
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    $3! HA! That's funny. Gimme 20 and we'll talk.

  9. #9
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >I figure that this forum would house the most intelligent and helpful programmers
    How would the most intelligent programmers be dumb enough to help you cheat in school? Also, helpful doesn't mean we do your work for you, it means we volunteer to give you minor assistance when you have a problem in writing your program.

    >so I guessed 3 dollars would be suffient for 10 minutes of thoughtlessness.
    Perhaps, but programmers don't come cheap when you start paying. For instance, at the lowest consultancy fees I've ever gotten, 10 minutes of thoughtlessness would be more like $42, so you're offer falls a little flat. Then there's the risk of us ever working with you. If you have no knowledge then that would hurt us considerably so it really isn't worth $3 to help you cheat.

    >I tried this program, but failed miserably
    Everyone does the first time, try again.

    -Prelude
    My best code is written with the delete key.

  10. #10
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Enough

    If you have code you want help with, post it on a new thread. If you don't have any, go write some of your own. We're here to guide people, not to do all their work for them.

    Read the rules which clearly cover soliciting for services.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Enforcing Machine Code Restrictions?
    By SMurf in forum Tech Board
    Replies: 21
    Last Post: 03-30-2009, 07:34 AM
  2. Values changing without reason?
    By subtled in forum C Programming
    Replies: 2
    Last Post: 04-19-2007, 10:20 AM
  3. Obfuscated Code Contest: The Results
    By Stack Overflow in forum Contests Board
    Replies: 29
    Last Post: 02-18-2005, 04:39 PM
  4. Obfuscated Code Contest
    By Stack Overflow in forum Contests Board
    Replies: 51
    Last Post: 01-21-2005, 03:17 PM
  5. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21