summaryrefslogtreecommitdiff
path: root/887/CH7/EX7.5
diff options
context:
space:
mode:
Diffstat (limited to '887/CH7/EX7.5')
-rwxr-xr-x887/CH7/EX7.5/7_5.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/887/CH7/EX7.5/7_5.sce b/887/CH7/EX7.5/7_5.sce
new file mode 100755
index 000000000..612d8d5b1
--- /dev/null
+++ b/887/CH7/EX7.5/7_5.sce
@@ -0,0 +1,10 @@
+clc
+//ex7.5
+//Given 317.2 (octal)and F3A.2 (hexadecimal)
+//From table 7.1 in text, corresponding octal forms of 3,1,7 and 2 are 011,001,111 and 010
+disp('The binary representation of 317.2(octal) is ')
+disp('011001111.010')
+disp('')
+//From table 7.1 in text, corresponding hexadecimal forms of F,3,A and 2 are 1111,0011,1010 and 0010
+disp('The binary representation of F3A.2(hexadecimal) is ')
+disp('111100111010.0010')