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 --- 2360/CH4/EX4.8/ex4_8.sce | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 2360/CH4/EX4.8/ex4_8.sce (limited to '2360/CH4/EX4.8/ex4_8.sce') diff --git a/2360/CH4/EX4.8/ex4_8.sce b/2360/CH4/EX4.8/ex4_8.sce new file mode 100755 index 000000000..2e4d92581 --- /dev/null +++ b/2360/CH4/EX4.8/ex4_8.sce @@ -0,0 +1,16 @@ +// Exa 4.8 +clc;clear;close; +// Given data +format('v',8) +n = 4;// number of bit +R = 1/(10^n); +disp(R,"Part (i) : The resolution is"); +// There are 5 digit places in 4 1/2 digits, so +disp("Part (ii) : 11.87 would be displayed as 11.870") +Reading= 0.5573; +format('v',7) +disp(Reading,"Part (iii) : On 1 V range, 0.5573 will be displayed as : ") +format('v',6) +disp(Reading,"On 10 V range, 0.5573 will be displayed as : ") + + -- cgit