summaryrefslogtreecommitdiff
path: root/3754/CH3/EX3.5/3_5.sce
diff options
context:
space:
mode:
Diffstat (limited to '3754/CH3/EX3.5/3_5.sce')
-rw-r--r--3754/CH3/EX3.5/3_5.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/3754/CH3/EX3.5/3_5.sce b/3754/CH3/EX3.5/3_5.sce
new file mode 100644
index 000000000..893c62872
--- /dev/null
+++ b/3754/CH3/EX3.5/3_5.sce
@@ -0,0 +1,16 @@
+clear//
+
+//Variables
+
+I = 0.3 //Current (in Ampere)
+W = 9.45 //Heat (in Joules)
+t = 5 //Time (in seconds)
+
+//Calculation
+
+Q = I * t
+V = W/Q //Voltage (in Volts)
+
+//Result
+
+printf("\n The voltage across filament is %0.3f volts.",V)