Thread: Funtions Help

  1. #1
    Registered User
    Join Date
    Oct 2003
    Posts
    8

    Question Funtions Help

    I am trying to add a function to add 25 dollars to the total cost for every 20 people.

    I have attached the program. Any assistance is greatly appreciated

    Thanks!

  2. #2
    Your file didn't get attached for some reason, so you may want to re attach it and make sure it is a supported filetype.

  3. #3
    Registered User
    Join Date
    Oct 2003
    Posts
    8

    Question Functions Help

    Here is attachment for above!

  4. #4
    Registered User jlou's Avatar
    Join Date
    Jul 2003
    Posts
    1,090
    int numPeople = 76;
    int numGroupsOf20 = numPeople / 20;
    // Now numGroupsOf20 equals 3.


    Hopefully that hint will help you determine how many groups of 20 people there are so you can use it to solve your problem.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. These 2 recursive funtions won't work with me.
    By KidMan in forum C Programming
    Replies: 2
    Last Post: 11-04-2005, 03:03 PM
  2. The relevance of pointer to funtions
    By caroundw5h in forum C Programming
    Replies: 3
    Last Post: 02-27-2005, 08:20 PM
  3. about those funtions??
    By nerdyneo in forum C++ Programming
    Replies: 2
    Last Post: 11-14-2003, 01:36 PM
  4. Array Funtions
    By GrlNewB in forum C++ Programming
    Replies: 8
    Last Post: 04-10-2003, 07:30 PM
  5. program that uses multiple funtions
    By mike in forum C++ Programming
    Replies: 5
    Last Post: 02-09-2002, 08:44 AM