summaryrefslogtreecommitdiff
path: root/3648/CH17/EX17.6/Ex17_6.sce
blob: cef19b0bc95c0424563eb03dfabf01b683b4e7cc (plain)
1
2
3
4
5
6
7
8
9
10
//Example 17_6
clc();
clear;
//To calculate the cost needed to operate
power=0.7     //Units in KW
time=0.5       //Units in h
heat=power*time  //Units in K Wh
cost=0.10       //Units in Dollars
tcost=cost*heat      //Units in Dollars
printf("Cost needed to operate is=%.4f Dollars",tcost)