| Redhead,
In the meantime, I just wanted to let you see that I figured it out. I'm sure your's is better but at least I tried. Please see the following:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
main(void)
{
float eur_to_usd_rate = 1.2422;
float cad_to_usd_rate = 0.7912;
float cny_to_usd_rate = 0.1208;
float jpy_to_usd_rate = 0.0091;
float sek_to_usd_rate = 0.1373;
float equivalent_usd_amt;
int usd_amt = 1;
printf(" Currency Conversion\n");
printf("\n\n");
printf("Conversion rates as of September 30, 2004\n");
printf("\n\n");
printf("The exchange rate for the Euro is 1.2422 divided into 1 US
Dollar = 0.8050\n");
equivalent_usd_amt = usd_amt / eur_to_usd_rate;
printf("The equivalent USD Amount for the Euro is equal to %4.4f\n",
equivalent_usd_amt);
printf("\n\n");
printf("The exchange rate for the CAD is 0.7912 divided into 1 US
Dollar = 1.2639\n");
equivalent_usd_amt = usd_amt / cad_to_usd_rate;
printf("The equivalent USD Amount for the Canadian Dollar is equal to
%4.4f\n", equivalent_usd_amt);
printf("\n\n");
printf("The exchange rate for the CNY is 0.1208 divided into 1 US
Dollar = 8.2781\n");
equivalent_usd_amt = usd_amt / cny_to_usd_rate;
printf("The equivalent USD Amount for the Chinese Renminbi is equal
to %4.4f\n", equivalent_usd_amt);
printf("\n\n");
printf("The exchange rate for the JPY is 0.0091 divided into 1 US
Dollar = 109.8901\n");
equivalent_usd_amt = usd_amt / jpy_to_usd_rate;
printf("The equivalent USD Amount for the Japanese Yen is equal to
%4.4f\n", equivalent_usd_amt);
printf("\n\n");
printf("The exchange rate for the SEK is 0.1373 divided into 1 US
Dollar = 7.2833\n");
equivalent_usd_amt = usd_amt / sek_to_usd_rate;
printf("The equivalent USD Amount for the Swidish Krona is equal to
%4.4f\n", equivalent_usd_amt);
}
I want to thank you very much for your help with this. I really appreciate it.
Regards,
Julia |