We use the formula,
![density=(mass)/(volume)](https://img.qammunity.org/2019/formulas/chemistry/middle-school/58e864b2s1n4rc7orx1hyjc14q5gekqjio.png)
Given,
and
.
Substituting these values, we get
.
As Jupiter were a perfect sphere, therefore the volume of sphere is given by
![volume=(4)/(3) \pi r^3](https://img.qammunity.org/2019/formulas/physics/college/wx0a54r979jy9v0x3mes61gpcgtr53ojzx.png)
Here, r is the radius of sphere.
Substituting the value of volume we get
.
The diameter is twice of radius, thus the diameter of Jupiter would be
![2r=2* 0.697* 10^(10)\ cm=1.394* 10^(10)\ cm](https://img.qammunity.org/2019/formulas/physics/college/c0at4uxz33yincg6satc1yljh1x6upw2xu.png)