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]:...


Complete the program (Python)



Instruction:
Fill in the
Barrel class
methods
to accept the
taas

(height) and
diaHalf
of the barrel then return
kabuuangSukat

(total size)
and
sukatNgLawak

(dimension) of the barrel.



Program:



In [5]: class Barrel:<br>def _init_(self, taas-1,diaHalf-1):<br>pass<br>def kabuuangSukat (self):<br>pass<br>def sukatNgLawak (self):<br>pass<br>In [12]: #sample data<br>c = Barrel(5,6)<br>In [9]: c.kabuuangSukat ()<br>Out[9]: 565.2<br>In [10]: c.sukatNgLawak ()<br>Out[10]: 414.48<br>

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

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here