summaryrefslogtreecommitdiff
path: root/3769/CH6/EX6.1/Ex6_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '3769/CH6/EX6.1/Ex6_1.sce')
-rw-r--r--3769/CH6/EX6.1/Ex6_1.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/3769/CH6/EX6.1/Ex6_1.sce b/3769/CH6/EX6.1/Ex6_1.sce
new file mode 100644
index 000000000..13e0498b2
--- /dev/null
+++ b/3769/CH6/EX6.1/Ex6_1.sce
@@ -0,0 +1,16 @@
+clear
+//Given
+a=4
+b=2.0
+c=8
+d=5
+e=3.0
+
+//Calculation
+I1=((a*c)+(b*e))/((b*c)+(d*e))
+I2=(a-(2*I1))/e
+V=(I1-I2)*5
+
+//Result
+printf("\n (i) Current through each battery is %0.2f A and %0.2f A",I1,I2)
+printf("\n (ii) Terminal voltage is %0.2f V",V)