Explore BrainMass

Explore BrainMass

    C++ Program to Convert Temperatures

    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!

    For a given temperature convert it to Degree Celsius or Fahrenheit. User enters the temperature and Type.

    © BrainMass Inc. brainmass.com December 24, 2021, 6:28 pm ad1c9bdddf
    https://brainmass.com/physics/temperature/c-program-convert-temperatures-116075

    Solution Preview

    // Temperature Conversion Program
    #include <iostream>
    using namespace std;

    int main()
    {
    char temp_type;
    double temp, fahren, celsius;

    cout << "Enter the temperature to be converted: ";
    cin >> temp;

    cout << "Enter F if temperature is in Fahrenheit";
    ...

    Solution Summary

    For a given temperature convert it to Degree Celsius or Fahrenheit.
    User enters the temperature and Type.

    $2.49

    ADVERTISEMENT