blob: e977ba30e2e8c861fc5ce2f68e9c42c179efdae9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
clear//
//Variables
Ptrdc = 20.0 //dc Power (in watt)
Poac = 5.0 //ac Power (in watt)
//Calculation
ne = Poac / Ptrdc //Collector efficiency
P = Ptrdc //Power rating of the transistor
//Result
printf("\n Collector efficiency is %0.3f percentage.\nPower rating of the transistor is %0.3f W.",ne*100,P)
|