from __future__ import division
#Variable declaration:
Pi = 4200 #input power(W)
E = 120 #voltage supply of generator(V)
I = 32.2 #supply current(A)
#Calculation:
Po = E*I #output power(W)
n = Po/Pi*100 #efficiency(%)
Pl = Pi-Po #power lost(W)
El = Pl*60 #energy lost per minute(J)
#Result:
print "The percentage efficiency of the generator is",n,"%"
print "Energy lost per minute of operation is",El,"J"