Homework #04 (Due: Fri 23 Jan)

\begin{purpose}
This assignment will involve simple integer arithmetic. You may ...
...uring out how to combine the various
operators can be a challenge!
\end{purpose}

Your program should have the user enter an integer value that represents some number of cents. Your task is to calculate and display the number of quarters, dimes, nickels, and pennies that need to be given to total the given number of cents. You should always give the largest coin from the change that remains. That is, don't cheat and have the program give all the change in pennies!

As always, submit your completed assignment by email to: cscihomework@hsutx.edu with a subject line of ``P1 Homework #4''.

Have fun!

P.S. What happens with your program if the user enters `23212' for the change?

tsergeant@hsutx.edu

Quick Links