summaryrefslogtreecommitdiff
path: root/608/CH20/EX20.02/20_02.sce
diff options
context:
space:
mode:
Diffstat (limited to '608/CH20/EX20.02/20_02.sce')
-rwxr-xr-x608/CH20/EX20.02/20_02.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/608/CH20/EX20.02/20_02.sce b/608/CH20/EX20.02/20_02.sce
new file mode 100755
index 000000000..5927a2338
--- /dev/null
+++ b/608/CH20/EX20.02/20_02.sce
@@ -0,0 +1,12 @@
+//Problem 20.02: An ideal transformer with a turns ratio of 2:7 is fed from a 240 V supply. Determine its output voltage.
+
+//initializing the variables:
+tr = 2/7; // turns ratio
+V1 = 240; // in Volts
+
+//calculation:
+//A turns ratio of 2:7 means that the transformer has 2 turns on the primary for every 7 turns on the secondary
+V2 = V1/tr
+
+printf("\n\n Result \n\n")
+printf("\n output voltage %.0f V",V2) \ No newline at end of file