Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A box making company makes boxes that are 4.25 wide by 7.5 long by 3 high. The boxes have a bottom, but not a top.

A box making company makes boxes that are 4.25" wide by 7.5" long by 3" high. The boxes have a bottom, but not a top. So to make a box, you need two sides (3"high by 7.5"long, plus two ends (3"high by 4.25"long), plus one bottom (4.25"wide by 7.5"long).

For this problem, ignore the thickness of the wood, and ignore the overlap required to glue things together.

They buy wood in strips, from which they can cut off enough to make as many boxes as they plan to make that day. For this program, assume no waste: the wood comes in very long strips, from which you can cut off exactly as much as you need. Don't worry about what's left over on the strip, and don't worry about running out.

There are two kinds of wood in the shop: 3 inch wood to make the sides, and 4.25 inch wood to make the bottom. If they want to make one box, they need enough 3" wood to make all four sides (2 x width + 2 x length), and enough 4.25" wood to make one bottom (1 x length)

Write a program that asks the user how many boxes to make, and calculates how much 3" wood and how much 4.25" wood is needed for the number of boxes requested.

Print out the results to 2 decimal places.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

=+10. How are inflation and unemployment related in the short run?

Answered: 1 week ago

Question

=+8. Why is productivity important?

Answered: 1 week ago