Currency
Create an application that converts U.S. dollar amounts to pounds, euros, and yen. The following conversion factors are not accurate, but you can use them in your application:
1 dollar = 0.68 pound
1 dollar = 0.83 euro
1 dollar = 108.36 yen
In your code, declare named constants to represent the conversion factors for the different types of currency. For example, you might declare the conversion factor for yen as follows:
Const dblYEN_FACTOR As Double = 108.36
Use the named constants in the mathematical conversion statements. Use the following test data to determine whether the application is calculating properly:
Dollars | Conversion Values |
$100.00 | Pounds: 68 Euros: 83 Yen: 10,836 |
$ 25.00 | Pounds: 17 Euros: 20.75 Yen: 2,709 |
$ 1.00 | Pounds: 0.68 Euros: 0.83 Yen: 108.36 |
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.