Can i please get some help?
Question:
Write a method that takes an amount of money in the form of double and then returns the amount in the form of dollars and cents (seperatley).
Needs to be a Console Application.
Nooby at this still. Please help.
Loading
Santhosh NPosted Jan 22, 2010, 3:14 AM
you could find the service here but can use anything otherthan this as well
http://weblogs.asp.net/sonukapoor/archive/2005/01/03/346002.aspx
Once you get the conversion rate then you can multiple your value to that and calculate..
something like this
double mn = serviceReference.SomeMethod(InputMoney);
string[] doll = mn.ToString().Split('.');
string moneyInDollar = doll[0];
string moneyInCents = doll[1];