Well Come to Professional Programmers

Learning Goal

Learning is a process to acquire, enhance, or make changes in one's knowledge. Learning Module presents essential and masks non-essential pieces of knowledge. It is self paced and presents required links to important examples and related terminologies essentially required for examination centric study. The module is focused on examination system in vogue in Pakistan and helps student acquire maximum marks in limited time of study.

Monday, April 12, 2010



Practical#07



SOURCE PROGRAM



10 REM TO CONVERT FAHRENHEIT INTO CENTIGRADE AND CENTIGRADE INTO FAHRENHEIT

20 CLS

30 PRINT "TO CONVERT FAHRENHEIT INTO CENTIGRADE"

40 INPUT "ENTER VALUE IN FAHRENHEIT";F

50 LET C = (5 / 9) * (F - 32)

60 PRINT F, "FAHRENHEIT", "===", C, "CENTIGRADE"

70 PRINT "***********************************************************"

80 PRINT "TO CONVERT CENTIGRADE INTO FAHRENHEIT"

90 INPUT "ENTER VALUE IN CENTIGRADE";C1

100 LET F1 = (9 / 5)*C1 + 32

110 PRINT C1, "CENTIGRADE","===", F1, "FAHRENHEIT"

120 END




OUTPUT



41 FAHRENHEIT === 5 CENTIGRADE
*****************************************************************
5 CENTIGRADE === 41 FAHRENHEIT



Return to Top

No comments:

Post a Comment