Complete the program (Python)
Instruction:Fill in theBarrel classmethodsto accept thetaas(height) anddiaHalfof the barrel then returnkabuuangSukat(total size)andsukatNgLawak(dimension) of the barrel.
Program:
Extracted text: In [5]: class Barrel: def _init_(self, taas-1,diaHalf-1): pass def kabuuangSukat (self): pass def sukatNgLawak (self): pass In [12]: #sample data c = Barrel(5,6) In [9]: c.kabuuangSukat () Out[9]: 565.2 In [10]: c.sukatNgLawak () Out[10]: 414.48
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here