Explore BrainMass
Share

Explore BrainMass

    Currency Conversion : key information

    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.

    © BrainMass Inc. brainmass.com October 9, 2019, 4:01 pm ad1c9bdddf
    https://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.

    $2.19