summaryrefslogtreecommitdiff
path: root/608/CH2/EX2.05/2_05.sce
diff options
context:
space:
mode:
Diffstat (limited to '608/CH2/EX2.05/2_05.sce')
-rwxr-xr-x608/CH2/EX2.05/2_05.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/608/CH2/EX2.05/2_05.sce b/608/CH2/EX2.05/2_05.sce
new file mode 100755
index 000000000..482ea9946
--- /dev/null
+++ b/608/CH2/EX2.05/2_05.sce
@@ -0,0 +1,11 @@
+//Problem 2.05: A coil has a current of 50 mA flowing through it when the applied voltage is 12 V. What is the resistance of the coil?
+
+//initializing the variables:
+I = 0.050; // in Ampere
+V = 12; // in Volts
+
+//calculation:
+R = V/I
+
+printf("\n\nResult\n\n")
+printf("\nResistance(R): %.0f Ohms\n",R) \ No newline at end of file