Explore BrainMass

# Currency Conversion : key information

Not what you're looking for? Search our solutions OR ask your own Custom question.

This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

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.

https://brainmass.com/computer-science/programming-languages/currency-conversion-key-information-19847

#### Solution Preview

/*program for currency conversion. You input the amount and type of currency and the program outputs the equivalent amount in USD. */

#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;math.h&gt;

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.

\$2.49