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 --- 2471/CH1/EX1.7/Ex1_7.sce | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 2471/CH1/EX1.7/Ex1_7.sce (limited to '2471/CH1/EX1.7/Ex1_7.sce') diff --git a/2471/CH1/EX1.7/Ex1_7.sce b/2471/CH1/EX1.7/Ex1_7.sce new file mode 100755 index 000000000..1dc8ea9fe --- /dev/null +++ b/2471/CH1/EX1.7/Ex1_7.sce @@ -0,0 +1,17 @@ +close +clear ; +clc; +// Example 1.7 +printf('Example 1.7\n\n'); +printf('Page No. 12\n\n'); +// Solution + +// Given +O= 150*10^3;// energy consumption in office heating in Watts +L= 120*10^3;// energy consumption in lighting in Watts +B= 90*10^3;// energy consumption in boiler house in Watts +P= 180*10^3;// energy consumption in process in Watts +// Pie Chart Representation : one input argument x=[O L B P] +pie([O L B P],["office heating" "lighting" "boiler heating" "process"]);// Please see the graphics window +printf('The Pie chart is plotted in the figure'); + -- cgit