summaryrefslogtreecommitdiff
path: root/2882/CH1/EX1.10/Ex1_10.sce
diff options
context:
space:
mode:
Diffstat (limited to '2882/CH1/EX1.10/Ex1_10.sce')
-rwxr-xr-x2882/CH1/EX1.10/Ex1_10.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/2882/CH1/EX1.10/Ex1_10.sce b/2882/CH1/EX1.10/Ex1_10.sce
new file mode 100755
index 000000000..83dcd27b5
--- /dev/null
+++ b/2882/CH1/EX1.10/Ex1_10.sce
@@ -0,0 +1,16 @@
+//Tested on Windows 7 Ultimate 32-bit
+//Chapter 1 Introduction to Electronics Pg no. 33
+//Solved Problem 3
+clear;
+clc;
+
+//Given Data
+
+R=120;//resistance in ohms
+P=1000;//power in watts
+
+//Solution
+
+I=sqrt(P/R);//current in amperes
+
+printf("I=%.2f Amperes.",I);//Displaying upto 2 places of decimal