summaryrefslogtreecommitdiff
path: root/608/CH21/EX21.08/21_08.sce
blob: a1a8ebb50d0122fb2b00f81d1e6dc0dc92c001ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//Problem 21.08: A generator is connected to a 60 ohm load and a current of 8 A flows. If the armature resistance is 1 ohm determine (a) the terminal voltage, and (b) the generated e.m.f.

//initializing the variables:
RL = 60; // in ohms
Ia = 8; // in Amperes
Ra = 1; // in ohms

//calculation:
//terminal voltage,
//V = Ia*RL
V = Ia*RL
//Generated e.m.f., E
E = V + Ia*Ra

printf("\n\n Result \n\n")
printf("\n (a)terminal voltage is %.0f V ",V)
printf("\n (b)generated e.m.f. is %.0f V ",E)