Homework #08 (Due: Wed 04 Feb)

\begin{purpose}
This is an opportunity to use a while loop to validate input. Al...
...o that you can become
comfortable with their syntax and semantics.
\end{purpose}

For this assignment you will modify the ``dog years'' program you wrote for homework #5. The program for this assignment will obtain a dog's age in human years and calculate the ``dog years'' equivalent as before. The output will include the dog's age in dog years along with appropriate commentary.

When obtaining the dog's age from the user you should require that the age in human years be in the range 0 through 30. As long as the user enters values outside that range you should require re-entry. Once a valid age has been obtained, then perform the calculations and produce the output.

Submit your complete assignment by email.

tsergeant@hsutx.edu

Quick Links