Question: The program must prompt the user to enter the amount of dollars (a double precision real number) to be converted and then display the result
The program must prompt the user to enter the amount of dollars (a double
precision real number) to be converted and then display the result in the format
shown below.The amounts in the foreign currencies must be rounded off to the cents
(second decimal digit).
For the conversion assume that:
1 U.S. Dollar = 18.2587 Mexican Pesos
1 U.S. Dollar = 0.846372 Euros
Declare named constants (DOL2MEX and DOL2EURO) for working with these values in
the program.
NOTE :This is the most basic of the c++ program.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
