Yes Ocifer, adding more variables allowed me to make things work. As a beginner my code is probably bulkier than it has to be, but I am determined to learn so neater code will surely come when I have...
Type: Posts; User: brewgrass
Yes Ocifer, adding more variables allowed me to make things work. As a beginner my code is probably bulkier than it has to be, but I am determined to learn so neater code will surely come when I have...
Thank you all for helping me solve my math operations dilemma. I now need to add an if statement because the program crashes if any of the operations tries to divide by 0.
This is fun and...
Thank you claudiu, but i still do not understand my error. I changed int for quarters, dimes, nickels, and pennies to const int so they always retain their value.
total = total % dimes (for...
I have been building a very basic program to convert dollars and change to coins. This program is similar to an example in the book I am using. I try to make small changes to ensure that I understand...
Thank you all for your help. I have a better understanding of what I need to do now. I will work on this program and see if I can get it operational. At least if I need help again, I can provide code...
Thank you both for your replies. Sipher, I understand that the truncate feature will round down for numbers less than .5. What is confusing me is how I need to declare the user-entered numbers so...
I am new to programming and chose C++ as a starting language. I am creating a program (for practice). I want the user to enter 5 numbers that are a combination of integers and decimals. How would I...