Write a program that converts U.S. Dollar Amounts to different Cryptocurrencies by the use of storing the
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a program that converts U.S. Dollar Amounts to different Cryptocurrencies by the use of storing the conversion factors in named constants.
Ask the user to enter the amount of money in U.S. Currency, then display the output of the conversions to the different cryptocurrencies listed below.
The following conversion rates must be stored as named constants:
- 1 US Dollar = 0.00002306 Bitcoin (BTC)1
- 1 US Dollar = 0.01122814 Ethereum Classic (ETC)1
- 1 US Dollar = 2.07961078 Dogecoin (DOGE)1
- 1 US Dollar = 0.48910811 Cardano (ADA)1
Format your currency amounts in fixed point notation with two decimal places of precision, and be sure that the decimal point is always displayed.
Related Book For
Posted Date: