Home > Back-end >  Java programming questions
Java programming questions

Time:10-14

Calculation of downwind logistics car carrying

Known downwind logistics car car 4.2 meters long, 1.9 meters wide, 1.9 meters high, fedex box is 0.5 meters long, is 0.5 meters wide, is 0.3 meters high, so the logistics car can hold how many boxes of this specification,

Calculation formula is: total number of boxes (rounded)=(carriage width/express logistics box wide) * (logistics/express box long car) * (high/express logistics car trunk high),

CodePudding user response:

Double carSum=4.2 * 1.9 * 1.9;
Double boxSum=0.5 * 0.5 * 0.3;
System. The out. Println ((int) carSun/boxSun);

CodePudding user response:

reference 1st floor weixin_45738734 response:
double carSum=4.2 * 1.9 * 1.9;
Double boxSum=0.5 * 0.5 * 0.3;
System. The out. Println ((int) carSun/boxSun);

I've made meowed assignments
  • Related