C Homework

This is a discussion on C Homework within the C Programming forums, part of the General Programming Boards category; I really need someones help in writing a program. It consists of having a user input monthly sales for twelve ...

  1. #1
    Unregistered
    Guest

    Unhappy C Homework

    I really need someones help in writing a program. It consists of having a user input monthly sales for twelve months. I have to write four functions. First, I have to write a functions that gets the monthly sales. Second, I have to write a function that calculates all monthly sales. Third, I have to return a lowest monthly sale. Fourth, I have to return the highest monthly sale. For the first function, if someone inputs a value of zero it is supposed to return a error message.

    I NEED SOME HELP BY TODAY>>IT IS DUE BY 5pm ....I appreciate anyone's efforts...Thanks

  2. #2
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,825
    > IT IS DUE BY 5pm

    Wow, that sucks.

    This is pretty simple. Show us what you tried. If you haven't tried anything, lie and show us something you made up. If you don't have any code, at least show us how you want to do it. Get the picture?

  3. #3
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386
    >I have to write four functions

    That's correct, YOU have to write four functions.

  4. #4
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Easy.... your answer awaits you here.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  5. #5
    fox
    fox is offline
    Registered User
    Join Date
    Jul 2002
    Posts
    10
    I only help do homework with an attempt. Sometimes a little effort will get you far...

    -fox

  6. #6
    Unregistered
    Guest

    i see...

    I tell you what ..

    Pay me a 100 bucks and I'll do your C homework
    for this semester..

    If you get me another student, I'll cut the deal for 75 bucks!

    Oh, by the way, I take only British Pounds ..
    Dollar is going down on a daily basis.

    bahahahahahahahaha

  7. #7
    Green Member Cshot's Avatar
    Join Date
    Jun 2002
    Posts
    892
    Code:
    #include <stdio.h>
    
    void GetMonthlySales()
    {
       int inputValue;
       if(inputValue != 0)
          printf("OMG");
       else
          printf("Damn!");
    }
    
    void CalculateMonthlySales()
    {
       printf(" I");
    }
    
    void GetLowestMonthlySale()
    {
       printf(" am");
    }
    
    void GetHighestMonthlySale()
    {
       printf(" screwed!");
    }
    
    int main()
    {
       GetMonthlySales();
       CalculateMonthlySales();
       GetLowestMonthlySale();
       GetHighestMonthlySale();
       return 0;
    }
    Sorry, couldn't help it. Post some code and we'll be glad to help.

  8. #8
    Unregistered
    Guest
    Dude... don't make him cry

  9. #9
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >IT IS DUE BY 5pm
    You have my sympathy, what was your question again?

    >I appreciate anyone's efforts
    Well, since you didn't ask a question then you must mean our efforts in general on these boards. We're glad you approve.

    I recommend reading the smart questions link in my signature before posting again. For the record, complaining about a deadline on a C Q&A forum is off topic.

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

  10. #10
    Banned borko_b's Avatar
    Join Date
    Jun 2002
    Location
    Well... I live in Bulgaria :)
    Posts
    100

    Calm down you all !


    He is going to kill himself now!

  11. #11
    Unregistered
    Guest
    5 PM ... hmmm

    what time zone ?

    mahahahahahahahahahahahaha

  12. #12
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >He is going to kill himself now!
    I seriously doubt that, but he will think twice about posting homework that he hasn't tried to do in the future.

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

  13. #13
    PC Fixer-Upper Waldo2k2's Avatar
    Join Date
    May 2002
    Posts
    2,001
    I'm with that other guy, except I'm going to outbid him, 75 for you and 60 each if you get another lazy ass programmer who can't multiply variables.
    PHP and XML
    Let's talk about SAX

  14. #14
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    12 (now 13) replies to this thread..... and it's pure junk...! Is this going to be the most abused "do my homework for me" thread ever??

    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  15. #15
    PC Fixer-Upper Waldo2k2's Avatar
    Join Date
    May 2002
    Posts
    2,001
    we could make it that way. wanna try? lol no i think everyone's about done bashing him by now, and I'm sure he's not reading his own thread by now, especially after prelude got to him. way to go prelude stick it to the lazy programmer!
    PHP and XML
    Let's talk about SAX

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Homework
    By kermi3 in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 11-03-2001, 04:39 PM
  2. Homework
    By kermi3 in forum C Programming
    Replies: 10
    Last Post: 09-27-2001, 05:49 PM
  3. Homework
    By kermi3 in forum C++ Programming
    Replies: 15
    Last Post: 09-26-2001, 04:16 PM
  4. Homework
    By kermi3 in forum C Programming
    Replies: 0
    Last Post: 09-10-2001, 02:26 PM

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