Question: in python create a python class named Box that models a heavy Box with the following characteristics: 1. The class has four private instance variables
create a python class named Box that models a heavy "Box" with the following characteristics: 1. The class has four private instance variables L1, W1, H1 and W to store the length, Width, Height and Weight of the Box. Measurements are in meter and Kg. 2. This class has a constructors for four parameters that initializes the Box object's L.W.H.Weigh 3. This class has a method calculateVolume() which returns the volume (formula: L1-W1"H1) of the Box object 4. This class has a method calculateDensity() which returns the density of the Box (formula: weight/volume) check for divide by O. 5. creates an instance of the Box object with L1=10, W1=5, H1=5, W=100 and computes the Box's Volume and Density, then outputs the results to the user's screen. When you have this Assignment ready for me to view and grade you should upload your by file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
