Currency Conversion : key information
Write a C program that displays a title, "Currency Conversion", and then writes the names of five currencies and their equivalents to a US dollar. The conversions are hard coded equations. Insert comments in the program to document the program internally.
© BrainMass Inc. brainmass.com December 24, 2021, 4:59 pm ad1c9bdddfhttps://brainmass.com/computer-science/programming-languages/currency-conversion-key-information-19847
Solution Preview
Dear Student please find your solution pasted below.
/*program for currency conversion. You input the amount and type of currency and the program outputs the equivalent amount in USD. */
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
main (void)
{
/* Data Decleration and initialization*/
int Curr_type;
float For_curr=0.0;
float Equ_curr=0.0;
printf("nCURRENCY CONVERTERn");
printf("nEnter the type ...
Solution Summary
Write a C program that displays a title, "Currency Conversion", and then writes the names of five currencies and their equivalents to a US dollar. The conversions are hard coded equations. Insert comments in the program to document the program internally.