answersLogoWhite

0


Best Answer

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..

User Avatar

Wiki User

9y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a Cobol pgm to convert centigrade to Fahrenheit?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How would you design a flowchart to convert Fahrenheit to Celsius and Celsius to Fahrenheit?

input fahrenheit celsius = (fahrenheit - 32) * 1.8 write celsius Flow chart


How do you write algorithm to convert celsius to fahrenheit?

algorithm step1 start step2 add 32 to Celsius temperature step3 divide 9 by 5 step4 multiply answer with sum step5 Fahrenheit temperature is obtained step6 stop


How do you write equation of converting 59 degrees Fahrenheit into degrees Celsius?

59ºF = 15.0ºCUse this formula to convert degrees Fahrenheit (F) to degrees Celsius (C): (F - 32) / 1.8 = C


Write a LISP function that converts temperature in Centigrade to equivalent temperature in Fahrenheit?

) Define two functions that convert temperatures between degrees Fahrenheit and degrees Celsius. C= (F+40)* 5/9 -40 F= (C+40)* 9/5 -40 > (defun f-to-c (f)(- (/ (* (+ f 40) 5) 9) 40)) > (defun c-to-f (c)(- (/ (* (+ c 40) 9) 5.0) 40))


What does it mean to evaluate cobol?

The word evaluate in the programming language COBOL can be used to replace a nested if statement. Instead of long statement evaluate allows one to shorten the coding required and write cleaner code.


How do you write Fahrenheit in Hindi?

Fahrenheit is written as फेरनहाइट in Hindi.


Write the equation for 20 degrees Fahrenheit to -10 degrees Fahrenheit?

20 degrees Fahrenheit - 30 degrees Fahrenheit = -10 degrees Fahrenheit


Second sem cobol question paper previous year?

Each question carries 10 marks. Explain the environment Division with example. Explain the Data Division with an example. Explain the various types of Move statements. Write a COBOL program to find a given integer is odd or even. An input file consists of the following Employee name, Employee number, Basic pay. Write a COBOL program to create an Indexed file which consists of Employee-name, Employee-number, Basic-pay and DA (DA = 25% of Basic-pay) Assume that an organisation has 20 departments. Each department has 5 stores. You are provided with total monthly sales of each stores for the month December 2000. Write a COBOL program to read the data, to write the sales report department wise and also write the total sales of the organisation.


How to write setcent with Fahrenheit?

just think and write something good


What is the difference between MF Cobol and Mainframe Cobol?

It depends on the target platform. If you want to use MF COBOL on the mainframe then the answer is none, MF supports the mainframe as a target by using MF EEE. You write and unit test the code on the PC and then send the source off to the mainframe for compilation and final testing.


Write a programme in c to convert Fahrenheit to celsius and vice versa?

double celsiusToFahrenheit(double degreesC) { return degreesC * 9.0 / 5.0 + 32.0; } double fahrenheitToCelsius(double degreesF) { return (degreesF - 32.0) * 5.0 / 9.0; } Or instead of having to divide and multiply you can simply use (Celsius +32)1.8. (C+32)1.8 Fahrenheit -32 divided by 1.8. F-32/1.8.


Write a QBASIC program to convert a temperature in degrees Fahrenheit to degrees Celsius or vice versa depending on input?

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