Explore BrainMass
Share

Explore BrainMass

    Write a Currency Conversion Program in C

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

    Currency conversion program . The user will input the amount and type of currency (1-5) and the program outputs the equivalent amount in USD.

    Need help with:
    1.code that will limit type of currency to 1-5 only, if user entered over 5 it should have invalid input and ask user to choose type of currency again.

    2. I need help coding amount of money of this currency that you would like to convert to USD. Should also have invalid input and ask user to enter amount of money of this currency that they would like to convert to USD. It should ask the user again to Enter the type of currency and the amount of the currency that they would like to convert to US dollar. An option to quit here is also helpful.

    © BrainMass Inc. brainmass.com October 9, 2019, 5:36 pm ad1c9bdddf
    https://brainmass.com/computer-science/php/write-currency-conversion-program-61967

    Attachments

    Solution Preview

    The following corrections are done in the program and the attached program works correctly:

    1. Eliminated all & ...

    Solution Summary

    Shows a currency conversion program to convert different currencies to USD.

    $2.19