Question
Create a simple program that calculates the volume of shipping containers and determines how many boxes of sand can fit into the container if they
Create a simple program that calculates the volume of shipping containers and determines how many boxes of sand can fit into the container if they are emptied in. A common standard size is 12m by 2.6m by 2.9m. a. Create variables for the length, width, and height of the shipping container. You should assume cm for the unit. b. Calculate the volume by multiplying these together and store it in a variable. c. Create variables for the length, width, and height of the shipping box. E.g., a U-Haul moving box is 45cm by 45cm by 41cm. d. Calculate the volume of sand in the box and store it in a variable e. Calculate how many whole boxes of sand can fit in the container and store the result in the container. Use the integer division. f. Since we are using integer division there is no fractional component. Calculate the remainder from the above division. What does this number tell you? g. Use the println command to output your results in any fashion that you like.
(Using processing, Java)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started