To model the volume of a room, develop a structure called Volume, which uses three variables of the Distance type. Assign a size to a variable of type Volume as the initial value, calculate the volume it represents and write the result on the screen. To calculate the volume, assign each dimension of the Distance variable to another variable of type float. This float type variable is symbolized by decimal numbers in feet. Finally, multiply these three numbers.
cout "enter width/height/length and stuff"
cin >> x >> y >> z;
v = x*y*z;
cout << "your volume is " << v;
Avoid using OSO (objects for the sake of objects) and making something simple into the complicated for no reason. this is not worthy of an object; at most you may like to shovel x/y/z into a tuple or vector or something.