Question: Add a try block that: Reads integer numCents from input. Outputs the value of numCents followed by: cents = the value of numCents

Add a try block that:
Reads integer numCents from input.
Outputs the value of numCents followed by:
" cents ="
the value of numCents divided by 10
" dimes"
End with a newline.
Ex: If the input is 60, then the output is:
60 cents =6 dimes
Ex: If the input is H, then the output is:
Error: Unacceptable input for number of cents

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!