|
-
July 14th, 2011, 03:50 PM
#19
Re: Loop Problem
 Originally Posted by GCDEF
Work with cents instead of dollars. 1 dollar and 11 cents becomes 111 cents. Divide by 100 when you need to output dollars and cents.
I will work on changing over the code tonight. I can see there needs to be exception handling going on just in case the user tries to enter cents(157.03). I know I also need to add exception handlers for invalid input but my main focus was just practice for the basic equation and to get better with my code. I know college will help polish me and make me "think outside the box", but I want to get ahead for better grades and understanding.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|