Ask Question
4 November, 08:56

Write a program that converts a temperature from Celsius to Fahrenheit. It should (1) prompt the user for input, (2) read a double value from the keyboard, (3) calculate the result, and (4) format the output to one decimal place. For example, it should display "24.0 C = 75.2 F". Here is the formula. Be careful not to use integer division! F = C * 9 5 + 32

+3
Answers (2)
  1. 4 November, 09:31
    0
    See explaination

    Explanation:

    #include

    #include

    using namespace std;

    int main () {

    double tempF, tempC;

    cout<<"Enter a degree in Celsius: ";

    cin>>tempC;

    tempF = tempC * (9/5.0) + 32;

    cout<
    cout<
    return 0;

    }
  2. 4 November, 09:39
    0
    celsius = float (input ("Enter the celcius value: "))

    f = 1.8 * celsius + 32

    print (str (celsius) + " C = " + str (f) + " F")

    Explanation:

    The code is in Python.

    Ask the user for the input, celsius value

    Convert the celsius value to fahrenheit using the given formula

    Print the result as in shown in the example output
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Write a program that converts a temperature from Celsius to Fahrenheit. It should (1) prompt the user for input, (2) read a double value ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers