The variable, X, has to undergo the following:
X*9÷5+32
[The reverse would be to accept a Fahrenheit temperature:
(F-32)*5÷9]
Identification division. program-id.temperature11. environment division. data division. working-storage section. 77 ws-a pic 9(3)v9(2). 77 ws-b pic 9(3)v9(2). procedure division. main-para. display " enter degree temperature ". accept ws-a. compute ws-b rounded = ( 9/5 * ws-a ) + 32. display " temperature in fahrenheit celsius " ws-b. stop run..
Sure, here is a simple Python program to convert temperature from degrees Celsius to degrees Fahrenheit: celsius = float(input("Enter temperature in Celsius: ")) fahrenheit = (celsius * 9/5) + 32 print("Temperature in Fahrenheit: ", fahrenheit)
Measuring the temperature of the water in the cup would allow you to predict how high the pressure of water vapor inside the cup will rise, as the pressure of water vapor is directly proportional to the temperature of the water.
never ask anybody if they are a frigid because it is none of your business and you could upset them by asking them
HAARP (High-Frequency Active Auroral Research Program) can heat specific regions of the atmosphere by beaming high-frequency radio waves into the ionosphere, but it does not have the capability to significantly impact global climate or temperature.
Identification division. program-id.temperature11. environment division. data division. working-storage section. 77 ws-a pic 9(3)v9(2). 77 ws-b pic 9(3)v9(2). procedure division. main-para. display " enter degree temperature ". accept ws-a. compute ws-b rounded = ( 9/5 * ws-a ) + 32. display " temperature in fahrenheit celsius " ws-b. stop run..
Here's a simple Perl program to convert a given temperature from Celsius to Fahrenheit: # Input temperature in Celsius my $celsius = 20; # Convert Celsius to Fahrenheit my $fahrenheit = ($celsius * 9/5) + 32; # Print the result print "$celsius degrees Celsius is equal to $fahrenheit degrees Fahrenheit\n"; You can replace the value of $celsius with any temperature you want to convert.
Sure, here is a simple Python program to convert temperature from degrees Celsius to degrees Fahrenheit: celsius = float(input("Enter temperature in Celsius: ")) fahrenheit = (celsius * 9/5) + 32 print("Temperature in Fahrenheit: ", fahrenheit)
CLS INPUT "Enter degrees in Celsius:";c INPUT "Enter degrees in Fahrenheit:";f a=(c*1.8)+32 b=5/9(f-32) PRINT c;"degree Celsius=" a;"degree Fahrenheit" PRINT f;"degree Fahrenheit=" b;"degree Celsius" end
subtract 40, multiply by 9/5, then add 40
Identification division. Program-id. Environment division. Data division. Working-storage section. 77 f pic 9(3). 77 c pic 9(3)v99. 77 p pic z(3).z(2). Procedure division. Main-para. Display " enter fahrenheit temperature ". Accept f. Compute c rounded = ( f - 32 ) * 5 / 9. Move c to p. Display " temperature in degree celsius " p. Stop run.
Write a program which takes the temperature in farhenheight.the program should display the farhenheight temperature as well as centigrade. C= (f-32)*5/9
burat na flow chart
Code Example:/********************************************************************************* MODULE: main.c******************************************************************************** DESCRIPTION:* Program that takes a temperature from the user on the command line, then* displays that temperature as celsius converted to Fahrenheit, and* as Fahrenheit converted to celsius.********************************************************************************/#include #define iARGS_REQUIRED 2#define iARG_EXE 0#define iARG_INPUT 1static floatfCelsiusToFahrenheit( float fCelsius );static floatfFahrenheitToCelsius( float fFahrenheit );/********************************************************************************* MAIN********************************************************************************/intmain( int iArgc, char *acpArgv[] ){ float fFahrenheit = 0.0; float fCelsius = 0.0; float fInput = 0.0; /* user didn't provide a temperature on the command line */ if(iArgc != iARGS_REQUIRED) { fprintf(stderr, "Usage: %s [temperature]\n", acpArgv[iARG_EXE]); return 0; } /* read the given temperature into the fInput variable */ sscanf(acpArgv[iARG_INPUT], "%f", &fInput); /* fInput treated as celsius and converted to Fahrenheit */ fFahrenheit = fCelsiusToFahrenheit(fInput); /* fInput treated as Fahrenheit and converted to celsius */ fCelsius = fFahrenheitToCelsius(fInput); printf( "%.2f degrees Fahrenheit is %.2f degrees celsius.\n", fInput, fCelsius ); printf( "%.2f degrees celsius is %.2f degrees Fahrenheit.\n", fInput, fFahrenheit ); return 0;}/********************************************************************************* STATIC FUNCTION: fCelsiusToFahrenheit******************************************************************************** DESCRIPTION:* Converts a celsius temperature to Fahrenheit.** PARAMETERS:* fCelsius: The temperature in celsius to convert.** RETURNS:* fCelsius converted to Fahrenheit.********************************************************************************/static floatfCelsiusToFahrenheit( float fCelsius ){ return (fCelsius * 1.8) + 32;}/********************************************************************************* STATIC FUNCTION: fFahrenheitToCelsius******************************************************************************** DESCRIPTION:* Converts a Fahrenheit temperature to celsius.** PARAMETERS:* fFahrenheit: The temperature in Fahrenheit to convert.** RETURNS:* fFahrenheit converted to celsius.********************************************************************************/static floatfFahrenheitToCelsius( float fFahrenheit ){ return (fFahrenheit - 32) / 1.8;}
Both Celsius and Fahrenheit are used to measure temperature, but they are different scales. The two scales use different temperature readings (different numerical values) for their reference points, which are the same two reference points - the freezing point and boiling point of water.Water freezes at 0° C and boils at 100° C : there are 100 "degree" intervals.Water freezes at 32° F and boils at 212° F : there are 180 "degree" intervals.Degrees in Celsius are not the same size as degrees in Fahrenheit- the Celsius degrees are much larger, equal to 1.8 (9/5) of a Fahrenheit degree.°F to °C: Deduct 32, then multiply by 5, then divide by 9°C to °F: Multiply by 9, then divide by 5, then add 32
I use a little PC program for the temperature conversion. Scroll down to related links and look at "Conversion of Temperature Units".
This has been answered twice recently: F=1.8 C + 32