Its a rough currency converter from CA to US dollars, it prompts the user for an exchange rate and then prints out the US dollar based on intervals of ten.
IP: Logged |
posted
I think it would be interesting if you found an RSS feed for USD/CAD exchange rates and integrated that into the calculation so that it gives up-to-the-minute values.
Posts: 4753 | Registered: May 2002
| IP: Logged |
posted
I think your style could use a lot of work, and it's not taking advantage of Object Orientation in any way, but I wouldn't expect that stuff from your first program.
Good luck in your future Java endeavors.
Posts: 5656 | Registered: Oct 1999
| IP: Logged |
posted
By slightly modifying just four lines, you can tell people it's your first C# application, too!
Posts: 3486 | Registered: Sep 2002
| IP: Logged |
posted
If you have to turn this in for a class then you will probably want to make the max and interval variables constant (final or static final). Professors can be sticklers about stuff like that.
Posts: 1327 | Registered: Aug 2007
| IP: Logged |
quote:Originally posted by Xavier: I think your style could use a lot of work, and it's not taking advantage of Object Orientation in any way, but I wouldn't expect that stuff from your first program.
Ok, I'll agree on the style; they call it the One True Brace Style for a reason. But OO? Dude, it's a twenty-line, one-off problem. Just what benefit are you going to get from making a CurrencyInterfaceManagerFactory object? Object-oriented is for complex problems that require maintenance. Keep It Simple When Possible, eh?
Posts: 10645 | Registered: Jul 2004
| IP: Logged |