From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001
From: priyanka
Date: Wed, 24 Jun 2015 15:03:17 +0530
Subject: initial commit / add all books

---
 1238/CH8/EX8.12/8_12.sce | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100755 1238/CH8/EX8.12/8_12.sce

(limited to '1238/CH8/EX8.12')

diff --git a/1238/CH8/EX8.12/8_12.sce b/1238/CH8/EX8.12/8_12.sce
new file mode 100755
index 000000000..7f77f76e4
--- /dev/null
+++ b/1238/CH8/EX8.12/8_12.sce
@@ -0,0 +1,16 @@
+//calculating required data//
+//example 12//
+clc
+//clears the command window//
+clear
+//clears//
+V=10;//high input voltage//
+//first part//
+//digital input is 101001//
+Vo=(10*2^0+0+0+10*2^3+0+10*2^5)/2^6;//output voltage//
+printf('output voltage for digital input 101001=%f volt\n',Vo);//displaying the result//
+//second part//
+//digital input is 110001//
+Vo1=(10*1+0+0+0+10*16+10*32)/64;//output voltage//
+printf('output voltage for input 110001=%f volt',Vo1);//displaying the result//
+
-- 
cgit