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!
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!
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.
Here is attachment for above!
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.