summaryrefslogtreecommitdiff
path: root/3556/CH1/EX1.6/Ex1_6.sce
blob: 4c783408a433428f0e2caaaa002aa04659f61a7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
clc
// Fundamental of Electric Circuit 
// Charles K. Alexander and  Matthew N.O Sadiku  
// Mc Graw Hill of New York 
// 5th Edition 

// Part 1     :  DC Circuits 
// Chapter 1  :  Basic Concepts 
// Example 1 - 6

clear; clc; close; 
//
// Given data
t       =     2.0000;                
p       =   100.0000; 
//
// Calculations Energy Bulb 
W_kj = p*t*60*60;
W_h  = p*t;
// 
disp("Example 1-6 Solution : ");
printf(" \n W_kj = Energy Bulb        = %.3f Kilo - Joule",W_kj/1000)
printf(".\n W_h  = Energy Bulb        = %.3f Watt - Hour",W_h)