Thread: Help me within an hour !

  1. #1
    Registered User
    Join Date
    Aug 2006

    Help me within an hour !

    My name is Abdullah and I am a University student. We have started learning C Language in this semester but i am not so new in it. Thats why i dont know the language a lot.
    I've got an assignment and i have to complete the assignment within next hour becuz then i will leave for the University where i have to submit these 6 simple programs (simple for those who know the language, not for me).

    I dont have that much time to first understand and then make the programs so can anyone provide me with the coding of these 6 programs.

    1. Input 2 integer numbers, store in variables named a & b, then switch their values. (for example if a=2, b=5 then a=5, b=2)

    2. Input dimensions of a cylinder and find the area and volume of a cylinder.

    Area of cylinder : [2(pi)r(square) + 2(pi)rh]
    Volume of cylinder : (pi)r(square)h}

    3. Enter a number in miles and print its equivalent value in kilometers.

    [ 1 Kilometer = 0.621 miles ]

    4. Print even number series.

    5. Print odd number series.

    6. Generate the following output:

    1 2 3 4 5 6
    4 5 6 7 8 9
    9 10 11 12 13 14
    100 ............

  2. #2
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    New York
    I bet you could do it after reading this:

  3. #3
    pwns nooblars
    Join Date
    Oct 2005
    Portland, Or
    Show us code that you actually tried. Otherwise you deserve to fail for not getting the work done when it was assigned.

    You know, a person like you really made me upset today. I spent about an hour commenting a peer of mine's homework letting her know what she did wrong, why it was wrong, and how she can fix it. I send it back to her and today she sends it to me, hasn't changed one line of code tells me it is broken still and I should feel free to change the code. Nothing makes me more angry than someone trying to take advantage of another. I put extra work into helping her and she didn't even read the comments I bet.

    I hope you fail for leaving your assignment to the last minute then asking someone else to do your work... what uni/teacher so I can email him/her and report you.
    Last edited by Wraithan; 08-15-2006 at 08:59 PM.

  4. #4
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    puts( "1 2 3 4 5 6\n4 5 6 7 8 9\n9 10 11 12 13 14\n..................\n100 ............" );
    Ok, I've done one of them for you. You do the rest. I know I really shouldn't be doing your homework for you, but sometimes even I can't help myself.

    Hope is the first step on the road to disappointment.

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    Since the hour has been and gone, this pointless homework troll can slip back underneath it's bridge to await other passers by to sponge off.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Entry Level Help.
    By alex1067 in forum C Programming
    Replies: 21
    Last Post: 03-11-2008, 05:13 PM
  2. Entry Level help.
    By alex1067 in forum C++ Programming
    Replies: 8
    Last Post: 03-10-2008, 09:26 PM
  3. function returning hour in either 12 or 24 hour format
    By stanlvw in forum C Programming
    Replies: 4
    Last Post: 01-01-2008, 06:02 AM
  4. Roidian: Final Hour (72 hour gd compo results)
    By jverkoey in forum A Brief History of
    Replies: 13
    Last Post: 12-29-2004, 10:27 PM
  5. Rush Hour II
    By Witch_King in forum A Brief History of
    Replies: 3
    Last Post: 08-15-2001, 11:59 PM