Some of you have tried to help me in different ways. I'm very confused at this point. My code looks nasty and my output isn't turning out the way it's supposed to be. I'd appreciate if you guys could critique me a little on how I can add a little style, and less mess. This is my first function program. The only things we are allowed to use in this program are loops(for, while, and do while), functions (basic), and if/else statements. I've basically wasted the last 3 hours trying to mess around with it, but I seem to mess it up even more, the more I tinker.
My code
Sample program - This is what my program is SUPPOSED to do (If you compare the output values for my code and the samples, they are semi-close but not the same, this is where alot of my confusion is).
If you guys want to take a look at it, pass along a few suggestions on improvement. Feel free to /*comment*/ on specifics. My email address is: scrapster@scrappyabs.com
I'm on my way to a classmates house to see if we can work out our problems. I'll check back later.
My code
Sample program - This is what my program is SUPPOSED to do (If you compare the output values for my code and the samples, they are semi-close but not the same, this is where alot of my confusion is).
If you guys want to take a look at it, pass along a few suggestions on improvement. Feel free to /*comment*/ on specifics. My email address is: scrapster@scrappyabs.com
I'm on my way to a classmates house to see if we can work out our problems. I'll check back later.