Suppose a large group of students are taking activity buses for a field trip. Each bus can sit 24 people. They want a program to tell them how many buses they need. We have written a similar program before. One way to solve this program is to use integer division to divide number of people by 24 to see how many buses they will fill. Then we also calculate the remainder of the division. If the remainder is not 0, we need one more bus to carry those leftover people.
Write a program to do the following. Ask the user to enter the number of people going. Calculate and display the number of buses needed. This time do NOT use integer division. Figure out a way to use the ceil function to determine the number of buses needed (don’t forget to write a directive to include the cmath library).
We won't do your homework for you. It is yours to learn by doing. Write as much as you can first and if there is some tangible issue, then show your code and state the problem.