Currency Conversion Web Service Create a Web service that converts currency values between U.S. dollars and several other world currencies. Consumers can pass each currency code as a two-character or...


Currency Conversion Web Service


Create a Web service that converts currency values between U.S. dollars and several other world currencies. Consumers can pass each currency code as a two-character or three-character string. One method, named GetDollarValue, returns the amount in U.S. dollars corresponding to the amount parameter.


Public Function GetDollarValue(ByVal Country As String,


ByVal amount As Decimal) As Decimal


The other method, named GetCurrencyValue, returns the value in a foreign currency that corresponds to the dollars parameter.


Public Function GetCurrencyValue(ByVal Country As String,


ByVal dollars As Decimal) As Decimal


Client Program


Create a client application (Windows or Web) that lets the user select a currency type from a ComboBox and then input a U.S. dollar amount or a foreign currency amount. In Figure 11-37, the user clicks the button with the arrow pointing right to convert $55 U.S. into the equivalent amount in euros. If the user enters the foreign currency amount in the right-hand text box and clicks the arrow pointing left, the equivalent amount in dollars should appear.

Nov 16, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here