Question: in python Detine a dass naried penour which should hove the followine methods. - Ir cansthuctor should take four actual para neters: name, weight in
Detine a dass naried penour which should hove the followine methods. - Ir cansthuctor should take four actual para neters: name, weight in pounds height in fee - A me thod giveName which reburn the name of the pernon. - A method bMI which nuturnt the body rass inder of the person rounded to 1 place of decital. For weight in pounds and height in inches. 9MI is calcubtard as Folowing is a sample urace of the diss and the correeponding output. Sample trage p1-personeMary132,5bp2-personitJohn140,520 printipi giveNamedi har BMII si BVes Forropeiding output: Mary has BMI 213 : John has Blal25.6 Eat Virw insert Fomat foobs table dass persort def_init_iseilname, weight, helght, inchenk Detine a dass naried penour which should hove the followine methods. - Ir cansthuctor should take four actual para neters: name, weight in pounds height in fee - A me thod giveName which reburn the name of the pernon. - A method bMI which nuturnt the body rass inder of the person rounded to 1 place of decital. For weight in pounds and height in inches. 9MI is calcubtard as Folowing is a sample urace of the diss and the correeponding output. Sample trage p1-personeMary132,5bp2-personitJohn140,520 printipi giveNamedi har BMII si BVes Forropeiding output: Mary has BMI 213 : John has Blal25.6 Eat Virw insert Fomat foobs table dass persort def_init_iseilname, weight, helght, inchenk
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
