anw5238
December 8th, 2009, 09:18 AM
Hey... I am making a change maker program. What it is supposed to do is ask how much an item was, then ask how much they are going to pay with. Then it will give the person the correct amount of change. It's supposed to keep running until a negative amount is returned.
My problem is...
When the person enters the amount the item was the would put it in like ##.## BUT java won't recognize the cent value. SO i have Enter Dollar amount, and then enter Cent amount. I need to be able to convert ##.## to work in my program instead of the way I have it.
Any help will be greatly appreciated.
My problem is...
When the person enters the amount the item was the would put it in like ##.## BUT java won't recognize the cent value. SO i have Enter Dollar amount, and then enter Cent amount. I need to be able to convert ##.## to work in my program instead of the way I have it.
Any help will be greatly appreciated.