The following program takes in amount in US dollars and converts it into another currency. Create the functions that match the prototypes. Make sure that functions return the converted dollars into the proper currency. These values should be defined as constants in the global section so that any change in the exchange rate can be made there and nowhere else in the program.
One dollar = 0.74 euros
One dollar = 12.93 Mexican pesos
One dollar = 100.22 Japanese yen
#include <iostream>
#include <iomanip>
usingnamespace std;
// This program will get an amount in US dollars and convert it
// to another currency
// Prototypes of the functions
float convertToYen(float dollars);
float convertToEuros(float dollars);
float convertToPesos(float dollars);
int main ()
{
float dollars, euros, pesos, yen;
cout << fixed << showpoint << setprecision(2);
cout << "Please input the amount of US Dollars "
<< "you want converted: ";
cin >> dollars;
// Fill in the code to convert to yen, euros, and pesos
// and display the results
return 0;
}