Nothing wrong about it. It does what it is supposed to do so the teacher that is grading our assignment can see the work in action. We do as he directs, not as we want.
Type: Posts; User: Scrogdor
Nothing wrong about it. It does what it is supposed to do so the teacher that is grading our assignment can see the work in action. We do as he directs, not as we want.
Thank you for everyones help. I have added the code that was suggested as far as setting everything to 0 before each call. I didn't realize that the third call would build off the second one if no...
Now that makes perfect sense. This is my first class of C Programming and knew nothing of it before. So I am learning. Thank you for taking the time to explain, I really appreciate it.
If that is the case, and the .32 count affects the user input count, why does everything over 0.25 work as a correct count, but nothing under 0.25 does?
The purpose for writing it out is this is a basic class, and as dictated by the professor we are to write everything out at this point in time.
As far as what you said, it didn't make a...
Example of bad entry is if I put in $0.01 it tells me that I have 1 quarter, 0 dimes, 1 nickel and 2 pennies, which is completely wrong. Anything over $0.25 is a correct count.
Write a C function named change() that accepts a floating point number of total coins and the addresses of the integer variables named quarters, dimes, nickels, and pennies. The function should...