Quote:
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)
I have managed to get part A with the following code