Widget
Mailing Program
Assume you mail out widgets
from your home-based company. When
someone calls and orders widgets, you ship them in either cases,
quarter-splits, or individually. A case
of widgets consists of 16 widgets, so a quarter-split is 4 widgets, and all
others must be shipped individually.
Write a program that asks
the user to enter a whole number of widgets, not more than 50,000 and processes
how many cases, quarter-splits, and individual should have sent to them.
Be sure to use good programming
practice regarding efficient data types, spacing, and comments.
Sample:
<Name / Block /
Program>
<Program
Purpose>
How many widgets
would you like? 462
To send out 462
widgets, you need the following:
Cases:
28
Quarter-Splits: 3
Individuals: 2
Thank you. Press any key to continue.