Funtions Help

This is a discussion on Funtions Help within the C++ Programming forums, part of the General Programming Boards category; I am trying to add a function to add 25 dollars to the total cost for every 20 people. I ...

  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
    Perverted unanimous's Avatar
    Join Date
    Oct 2001
    Posts
    336
    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.
    Give me a bad reputation!!!

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

    Question Functions Help

    Here is attachment for above!
    Attached Files Attached Files

  4. #4
    Registered User jlou's Avatar
    Join Date
    Jul 2003
    Posts
    1,088
    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, 08:30 PM
  5. program that uses multiple funtions
    By mike in forum C++ Programming
    Replies: 5
    Last Post: 02-09-2002, 08:44 AM

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