summaryrefslogtreecommitdiff
path: root/2471/CH1/EX1.7/Ex1_7.sce
blob: 1dc8ea9fe794927762896ea77255bce92e9f1bcc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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');