Explore BrainMass
Share

Explore BrainMass

    English to US Currency Conversion Program in C++

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

    Complete the following problem in C++.

    Repetition: 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 a sentinel-controlled or end-of-file-controlled loops for the input.

    © BrainMass Inc. brainmass.com October 9, 2019, 8:03 pm ad1c9bdddf
    https://brainmass.com/computer-science/cpp/english-us-currency-conversion-program-c-plus-plus-138040

    Solution Preview

    #include <iostream>
    using namespace std;

    int main(){

    //British Pound
    float pound;
    //US Dollar
    float dollar;
    //The input amount, when it is -1 that means the end of ...

    Solution Summary

    In this program you will learn the use of loops to repeatedly take input from the user and also, you will learn about sentinel or guard to know when to stop taking inputs from the user. The program is well-documented, including comments so that it can be easily understood. A cpp. file is attached.

    $2.19