summaryrefslogtreecommitdiff
path: root/659/CH2/EX2.2cs
diff options
context:
space:
mode:
Diffstat (limited to '659/CH2/EX2.2cs')
-rwxr-xr-x659/CH2/EX2.2cs/Casestudy2_2.sce12
-rwxr-xr-x659/CH2/EX2.2cs/Casestudy2_2_output.PNGbin0 -> 12843 bytes
2 files changed, 12 insertions, 0 deletions
diff --git a/659/CH2/EX2.2cs/Casestudy2_2.sce b/659/CH2/EX2.2cs/Casestudy2_2.sce
new file mode 100755
index 000000000..32fd568c2
--- /dev/null
+++ b/659/CH2/EX2.2cs/Casestudy2_2.sce
@@ -0,0 +1,12 @@
+// Case Study:-Chapter 2 Page no.-48
+// 2.Solution of temprature in Farenheit and Celsius
+F_LOW=0;
+F_MAX=250;
+STEP=25;
+fahrenheit=F_LOW; //Initialization
+printf("Fahrenheit Celsius\n\n");
+while(fahrenheit < = F_MAX)
+ celsius=(fahrenheit-32.0)/1.8; //conversion from Farenheit to Celsius
+ printf("%6.2f %7.2f\n",fahrenheit,celsius);
+ fahrenheit=fahrenheit+STEP;
+ end \ No newline at end of file
diff --git a/659/CH2/EX2.2cs/Casestudy2_2_output.PNG b/659/CH2/EX2.2cs/Casestudy2_2_output.PNG
new file mode 100755
index 000000000..cf8db7e7a
--- /dev/null
+++ b/659/CH2/EX2.2cs/Casestudy2_2_output.PNG
Binary files differ