Fahrenheit temperature conversion formula and C language conversion program code

Fahrenheit (°F) is a measure of temperature, named after its inventor, German, Walbriel D. Fahrenheit (1686–1736) [1]. In 1714, he found that liquid metal mercury is more suitable for making thermometers than alcohol. Mercury is used as a temperature measuring medium. A glass mercury thermometer was invented. The freezing point temperature of the mixture of ammonium chloride and water (the temperature of freezing of ammonia water) was selected as the zero degree of the thermometer. The body temperature is 100 degrees of the thermometer. At standard atmospheric pressure, the melting point of ice is 32 °F, the boiling point of water is 212 °F, and there are 180 equal parts in the middle, each equal to 1 degree Fahrenheit, and is recorded as "1 °F". "Fahrenheit temperature standard" is one of the experience temperature scales. In the daily life of the United States, this temperature scale is often used, and is represented by the letter "°F".

So how is Fahrenheit (°F) converted in degrees Celsius? Look at the formula below.

The letter C on the thermometer indicates that the value it measured is Celsius. The Celsius temperature is specified as follows: the temperature of the ice-water mixture is set to zero, and the temperature of the boiling water is set to one hundred degrees. They are divided into 100 equal parts, and each aliquot is a unit of Celsius, called 1 degree Celsius.

"Celsius temperature scale" is one of the empirical temperature scales, also known as the "percentage temperature scale". The temperature symbol is t, the unit is Celsius, and the international code is “°C”. The Celsius temperature scale is set at 0 °C for the freezing point of pure water at atmospheric pressure. At one atmosphere, the vapor point is taken as 100 ° C, and the two standard points are divided into 100 equal parts, and each aliquot represents 1 ° C.

"Fahrenheit temperature standard" is one of the experience temperature scales. This kind of temperature scale is often used in daily life in the United States. It is stipulated that the water has a freezing point of 32 degrees at a pressure of atmospheric pressure and a boiling point of 212 degrees. The two standard points are divided into 180 equal parts, and each aliquot represents 1 degree. The Fahrenheit temperature is indicated by the letter "F". Its conversion relationship between Celsius (C) and Fahrenheit (F) is F=9/5c+32, or C=5/9(F-32)

-C language conversion program between Fahrenheit and Celsius

For an engineer or a code dog, of course, you must know the C language conversion program between Fahrenheit and Celsius. . . .code show as below

#include "stdio.h"

#include "conio.h"

Void main()

{

Float C;

Float F;

Char flag;

Loop:

Printf("f to c(c) or c to f(f),exit(q)?");

Scanf("%c",&flag);

If(flag=='q'||flag=='Q')

Exit();

Else if(flag=='f'||flag=='F')

{

Printf("input a number:");

Scanf("%f",&C);

F=C*9/5+32;

Printf("F=%f",F);

}

Else if(flag=='c'||flag=='C')

{

Printf("input a number:");

Scanf("%f",&F);

C=(F-32)*5/9;

Printf("C=%f",C);

}

Else

Goto loop;

Getch();

}

OBD Connectors

We make OBD connector with terminal by ourselves, soldering type and crimping type are both available. Also 12V and 24V type. OBD1, OB2, J1939, J1708, J1962, etc. Also molded by different type, straight type or right-angle type. The OBD connector cables used for Audi, Honda, Toyota, BWM, etc. We have wide range of materials source , also we can support customers to make a customized one to replace the original ones.

OBD Connectors,Sae J1708 Connector,Sae J1939 Connector,OBD2 Diagnostic Connectors,Diagnostic Connector,Deutsch Diagnostic Connector

ETOP WIREHARNESS LIMITED , http://www.oemmoldedcables.com

Posted on