summaryrefslogtreecommitdiff
path: root/3802/CH14/EX14.3/Ex14_3.sce
blob: d45fe5be4d4adef05ad4cb85c02d782cea77dcf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Book Name:Fundamentals of Electrical Engineering
//Author:Rajendra Prasad
//Publisher: PHI Learning Private Limited
//Edition:Third ,2014

//Ex14_3.sce.

clc;
clear;
average_demand=33.75;                    //in kilowatt
time_duration=24*365;                    // in hours
tariff=1.25;                            //in rupees per kilowatthour
annualenergy_consumption=average_demand*time_duration;
C=annualenergy_consumption*tariff;
printf(" \n Annual bill of the consumer=%6.1f rupees \n",C)