First off I would like to say that I have only been programing for about 4 weeks so I'm sorry if this post is abysmally silly. However, the assignment that I am currently working on doesn't seem to be working correctly and I cannot figure out why. It compiles just fine and runs fine but for some reason it will not return what I designed it to return
the problem appears to be with the pennie while statement...
the program will return the correct ammount of change for several values but it often returns the incorrect number of pennies. For instance 15.88 returns 3 pennies while 15.87 returns only 1
PLZZZZZZZZZ help my project is due in like 2 hours and I thought it worked fine but now it's broken. Any help would be greatly appreciated as I have spent several hours trying to troubleshoot it myself.
[ February 09, 2005: Message edited by: russell lloyd ]
[ February 09, 2005: Message edited by: russell lloyd ]
the problem appears to be with the pennie while statement...
the program will return the correct ammount of change for several values but it often returns the incorrect number of pennies. For instance 15.88 returns 3 pennies while 15.87 returns only 1
PLZZZZZZZZZ help my project is due in like 2 hours and I thought it worked fine but now it's broken. Any help would be greatly appreciated as I have spent several hours trying to troubleshoot it myself.
[ February 09, 2005: Message edited by: russell lloyd ]
[ February 09, 2005: Message edited by: russell lloyd ]