summaryrefslogtreecommitdiff
path: root/911/CH7/EX7.9.c
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /911/CH7/EX7.9.c
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '911/CH7/EX7.9.c')
-rw-r--r--911/CH7/EX7.9.c/ex_7_9_c.pdfbin0 -> 112667 bytes
-rw-r--r--911/CH7/EX7.9.c/ex_7_9_c.sce23
2 files changed, 23 insertions, 0 deletions
diff --git a/911/CH7/EX7.9.c/ex_7_9_c.pdf b/911/CH7/EX7.9.c/ex_7_9_c.pdf
new file mode 100644
index 000000000..3d8ddb5b8
--- /dev/null
+++ b/911/CH7/EX7.9.c/ex_7_9_c.pdf
Binary files differ
diff --git a/911/CH7/EX7.9.c/ex_7_9_c.sce b/911/CH7/EX7.9.c/ex_7_9_c.sce
new file mode 100644
index 000000000..78b45050f
--- /dev/null
+++ b/911/CH7/EX7.9.c/ex_7_9_c.sce
@@ -0,0 +1,23 @@
+// example 7.9(c)//
+clc
+//clears the screen//
+clear
+//clears all variables//
+disp('here ABCD = 0001 and G1''=1 and G2''=1')
+r= input('Enter the value of G1'' (0 or 1) : ' );
+//accepting the inputs from the user//
+t=input('Enter the value of G2'' (0 or 1): ' );
+sel = input ('Enter the values of ABCD : ' );
+strb = bitcmp(bitand (r,t),1);
+if strb ==0 then
+ //checking whether strobe is high or low//
+if sel ==1100 then
+y= 'The two pulses are steered to the Y12 output ' ;
+else
+y= 'The output Y12 remains in the High state ';
+end
+else
+y='The output Y12 remains in the High state ' ;
+end
+disp (y)
+//displaying result// \ No newline at end of file