Could someone please give me an idea on how to do this?

Suppose you have a group of people that needs to be transported on buses and vans. You can charter a bus only if you can fill it. Each bus holds 50 people. You must provide cans for the 49 or fewer people who will be left over after you charter buses. Write a program that accepts a number of people and deterimins how many buses must be chartered and reports the number of people left over that must be placed on bans.

Also each van can hold 15 people. How many vans will be required?

Not looking for you guys to do it or anything...just need some help on where to start.

4
Contributors
6
Replies
7
Views
10 Years
Discussion Span
Last Post by Sembhi

This requires just simple division (2nd grade or so math )

Number of busses = number of people / 50

out of the remainder from the above, the number of vans = number of people / 15

What's left is the number of cars needed.

You have to divide the quantum modulator by the physical denominator of the numerator of physical equations of the editorials on file. Then you

Then I guess you both need to read this
http://catb.org/~esr/faqs/smart-questions.html#forum

Spamming every forum in sight is not "choosing carefully".
Perhaps when you
a) know enough to help
b) care enough to bother helping
you'll appreciate how utterly annoying seeing the same thing posted all over the net can be.

You have to divide the quantum modulator by the physical denominator of the numerator of physical equations of the editorials on file. Then you

Thanks auxny. That worked perfectly!

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.