Explore BrainMass
Share

Explore BrainMass

    How to write a Currency Converter program in C

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

    Write a program that reads an exchange rate for converting English currency to U.S. currency and then reads several values in English currency and converts each amount to the equivalent U.S. currency. Display all amounts with appropriate labels. Use sentinel-controlled or end-of-file-controlled loops for the input.

    © BrainMass Inc. brainmass.com October 9, 2019, 4:24 pm ad1c9bdddf
    https://brainmass.com/computer-science/c/how-to-write-a-currency-converter-program-in-c-31638

    Solution Summary

    Demonstrates how to convert one currency to another by using an exchange rate in C.
    It also demonstrates the use of End-of-File marker to identify the end of input in a loop.
    Includes the C source code, Input file and Output file.

    $2.19