一个c++问题,主要问题在于第五个要求如何实现?

‎编写一个面向对象程序,数据成员包括箱子的长、宽、高,货物的长宽高。
‎(1)从键盘输入箱子和货物的长宽高。
‎(2)计算货物的体积
‎(3)计算箱子体积。
‎(4)计算所输入的箱子尺寸,存放货物的数量
‎ (5)输出箱子尺寸和货物尺寸3种 组合后,货物的体积、箱子体积、存放货物的数量。

或者能帮忙看下怎么把它完善一下(有一些错误)
#include
using namespace std;
class Box
{public:
friend class Goods;
void get_value();
float volume();
void display();
int number();
public:
float length1;
float width1;
float height1;
float v1,v2,v3;
int kind;
};
class Goods
{public:
void get_value2();
float volume2();
void display2();
void display3();
int number2();
public:
float length2;
float width2;
float height2;
float volumeBox;//这个有用吗?

};

void Box::get_value()
{cout<<"please input length1,width1,height1:";
cin>>length1;
cin>>width1;
cin>>height1;
}
void Goods::get_value2()
{cout<<"please input length2,width2,height2:";
cin>>length2;
cin>>width2;
cin>>height2;
}
float Box::volume()
{return(length1width1height1);}
float Goods::volume2()
{return(length2width2height2);}

int Goods::number2()
{return(volumeBox/(length2width2height2));}

void Box::display()
{cout<<volume()<<endl;}
void Goods::display2()
{cout<<volume2()<<endl;}
void Goods::display3()
{cout<<number2()<<endl;}

int main()
{Box box1,box2,box3;
box1.get_value();
cout<<"volume of box1 is ";
box1.display();
box2.get_value();
cout<<"volume of box2 is ";
box2.display();
box3.get_value();
cout<<"volume of box3 is ";
box3.display();

Goods good1,good2,good3;
good1.get_value2();
cout<<"volume of good1 is ";
good1.display2();

cout<<"please choose the kinds of boxs:box1,box2 or box3.";//选择箱子种类
cin>>kind;
switch(kind)
{
case 1:cout<<"please input the volume of box1 ";
cin>>v1;
//此处未完成,对象应归于何类有待商榷,引用也是个大问题。
}
cout<<"the number of goods ";//输出装货数量
good1.number2();
/good2.get_value2();
cout<<"volume of good2 is ";
good2.display2();
good3.get_value2();
cout<<"volume of good3 is ";
good3.display2();
/
return 0;
}