Thread: could you pls help me with this?please.

  1. #1
    Registered User
    Join Date
    May 2007
    Posts
    1

    could you pls help me with this?please.

    im just new in c programming.I hope you could help me with these following problem.

    1. write a program that reads positive integers until end-of-file and then prints the largest and smallest values.

    2. write a program that reads integers until end-of-file and then prints the largest and the second largest values?

    3. write a program that reads integers until end-of-file and then prints YES if the numbers do not decrease and NO otherwise.(the numbers do not decrease if for every pair n1, n2 in succession we have n1<=n2.)

    4. write a program that reads integers until end-of-file and then prints the maximum sum of consecutive values.


    pls help me i need it before thursday...please..thank you very much...

  2. #2
    Registered User
    Join Date
    May 2007
    Posts
    45
    Quote Originally Posted by rash20 View Post
    im just new in c programming.I hope you could help me with these following problem.

    1. write a program that reads positive integers until end-of-file and then prints the largest and smallest values.

    2. write a program that reads integers until end-of-file and then prints the largest and the second largest values?

    3. write a program that reads integers until end-of-file and then prints YES if the numbers do not decrease and NO otherwise.(the numbers do not decrease if for every pair n1, n2 in succession we have n1<=n2.)

    4. write a program that reads integers until end-of-file and then prints the maximum sum of consecutive values.


    pls help me i need it before thursday...please..thank you very much...
    I'm new to the programming myself and new to this forum, but I'm pretty sure that all your going to get from the post you made is some nasty remarks, no one will do your programs for you and you did not give anyone information so they may even be able to help you.

    Now wait for the guy with the signature "printf("DO YOUR OWN HOMEWORK")" (=

  3. #3
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    Quote Originally Posted by Ravens'sWrath View Post
    I'm new to the programming myself and new to this forum, but I'm pretty sure that all your going to get from the post you made is some nasty remarks, no one will do your programs for you and you did not give anyone information so they may even be able to help you.

    Now wait for the guy with the signature "printf("DO YOUR OWN HOMEWORK")" (=
    ... we're not that mean. It's just that we wished more people knew about the FAQ, the FAQ board, and read the forum stickies. Cause questions can get repetitive, despite the plethora of information out there. If anyone took the time to wander through our FAQ, they'd find some gems in there.

    Not that all the articles are particularly stunning, but it's pretty thorough. Maybe that was our first mistake.

    Or if they do have an interesting question it's poorly thought out and we spend ~10 posts worming out the actual issue.
    Last edited by whiteflags; 05-08-2007 at 01:39 AM.

  4. #4
    Registered User
    Join Date
    May 2007
    Posts
    45
    Quote Originally Posted by citizen View Post
    ... we're not that mean. It's just that we wished more people knew about the FAQ, the FAQ board, and read the forum stickies. Cause questions can get repetitive, despite the plethora of information out there. If anyone took the time to wander through our FAQ, they'd find some gems in there.

    Not that all the articles are particularly stunning, but it's pretty thorough. Maybe that was our first mistake.
    Well...Some more than others (=
    I'm just informing him maybe not in the best way (= That he can formulate his questions in a better way and to let him know that he needs to show the people here what he has tried and what he knows / doesn't know, this will allow his questions to be answered.

    rash20: If I discouraged you some, I apologize people here are very helpful (=

  5. #5
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,210
    Quote Originally Posted by Ravens'sWrath View Post
    Now wait for the guy with the signature "printf("DO YOUR OWN HOMEWORK")" (=
    You rang, sir? lol.

  6. #6
    Registered User
    Join Date
    May 2007
    Posts
    45
    Quote Originally Posted by MacGyver View Post
    You rang, sir? lol.
    I was wondering if you were online (=
    I love your signature (=

  7. #7
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    I love it more :@

  8. #8
    Hurry Slowly vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,788
    I hate it.
    All problems in computer science can be solved by another level of indirection,
    except for the problem of too many layers of indirection.
    – David J. Wheeler

  9. #9
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    It hates you. :P

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Basic port scanner code .. pls help ???
    By intruder in forum C Programming
    Replies: 18
    Last Post: 03-13-2003, 08:47 AM
  2. i dont know what to do. pls. help!!!!
    By Unregistered in forum C++ Programming
    Replies: 14
    Last Post: 03-14-2002, 03:24 PM
  3. help me pls..... :(
    By mocha_frap024 in forum C++ Programming
    Replies: 2
    Last Post: 02-22-2002, 10:46 AM
  4. pls help me!!
    By hanseler in forum C++ Programming
    Replies: 1
    Last Post: 12-05-2001, 08:46 PM
  5. Pls Help Me In This Question!!!
    By Joanna in forum Windows Programming
    Replies: 1
    Last Post: 10-20-2001, 02:05 PM