Question: Your goal is to write a program that asks the user for a whole number of dollars to convert into two cryptocurrencies: Bitcoin and Ethereum.
Your goal is to write a program that asks the user for a whole number of dollars to
convert into two cryptocurrencies: Bitcoin and Ethereum. You will store the
conversion factors in the constants BTCPERDOLLAR and ETHPERDOLLAR BTC
and ETH are the currency codes for Bitcoin and Ethereum Use the following
formulas for calculating the exchange rates:
dollar Bitcoin
dollar Ethereum
Format your currency amounts in fixedpoint notation with three decimals of
precision.
Your program should have the following:
A comment header with your name, date, and a description of the program
point
Constants to hold the conversion factors with the given rates points
A variable to hold the number of dollars to convert point
Formatted output as described in the requirements that calculates the
resulting amount of Bitcoin and Ethereum and displays that to the user use
the example output to guide your code. Remember, never type actual
numbers into the cout statements when you have variables for those values!
points
Demonstrate your program by testing it with the value of dollars
points NOTE: Be sure to test with values other than but use when
you submit your results for the assignment
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
