Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

#12 Celsius to Fahrenheit using C++. 144 Chapter 3 Expressions and Interactivity

ID: 3849680 • Letter: #

Question


#12 Celsius to Fahrenheit using C++.

144 Chapter 3 Expressions and Interactivity 12. Celsius to Fahrenheit Write a program that converts Celsius temperatures to Fahrenheit temperatures. The formula is F is the Fahrenheit temperature, and C is the Celsius temperature. 13. Currency Write a program that will convert U.S. dollar amounts to Japanese yen and to euros, storing the conversion factors in the constants YEN PER DOLLAR and EURos PER DOLLAR. To get the most up-to-date exchange rates, search the Internet using the term "currency exchange rate". If you cannot find the most recent exchange rates, use the following:

Explanation / Answer

12.

/CPP program for temperature conversion from Celsius to Fahrenheit

#include <iostream>
using namespace std;

int main()
{
   float centi,Fahren; //decalare variables
   cout<<"Enter temperature in Celsius : ";
   cin>>centi; //input centigrade
   Fahren=9/5*celsi+32; //converting expression
   cout<<" Converted : Fahrenheit temperature "<<Fahren<<" from Celsius "<<celsi; //printing output
   return 0;
}