data type conversion

Write a program that inputs a dollar amount and outputs how the amount can be represented
using the fewest number of bills and coins. For example, $17.74 would be represented by a
ten-dollar bill, a five-dollar bill, a toonie, two quarters, two dimes and four pennies.

I tried to do this but I'm confused with data type conversion.
Can you guys share some tips or insights how to do this?
What does this exercise has to do with data type conversion? Post some code, you might misunderstood something.
Topic archived. No new replies allowed.