[Help] C++ Problem

This is a discussion on [Help] C++ Problem within the C++ Programming forums, part of the General Programming Boards category; I need help with an exercise in my C++ book that I cannot figure out, hopefully someone here can and ...

[Help] C++ Problem

I need help with an exercise in my C++ book that I cannot figure out, hopefully someone here can and can help me out.

Daur's Flowers ships flowers in pots around the world, and orders are placed via the Internet.

a) Write a program that asks the user for the number of flower pots to be shipped, and then displays the number of boxes required. A big box can hold four pots, and a small box only one. Have the program calculate the smallest number of boxes required. The program output should look similar to:

Enter the number of flower pots to ship: <their value, e.g. 25>
We will ship:
6 big box(s)
1 small box(s)

b) Modify the program to allow for a very big box that can hold nine pots. The program output should look similar to:

Enter the number of flower pots to ship: <their value, e.g. 25>
We will ship:
2 very big box(s)
1 big box(s)
3 small box(s)

The problem is very similar to the change-calculating problem (if item costs x, and payment is y, how to give change with least number of coins). Someone had a thread about it before, at this link:adding a function to a program

If you're having a lot of trouble, you can look through the code there and see if you can get some ideas on how to do it. The code doesn't work 100% as is, but it can help if you've got a mental block at the moment.