C++ Project #3 Need Help With Formula
Programming Project #3
Open Box
An open box is made from a piece of rectangular cardboard by cutting out squares of equal size from
the four corners and bending up the sides.
What size should the squares be to obtain a box with largest possible volume? The length and width
of the cardboard are given by user.
Write a C++ program that can solve the problem. Allow your program run again and again as often as
the user wishes.
For example,
For the entered sides 16 and 30 of the cardboard, the size of the cut is 3.33 and the maximum
volume of the box is 725.93
For the entered sides 20 and 16 of the cardboard, the size of the cut is 2.95 and the maximum
volume of the box is 420.11
Note:
Validate your input values to detect characters and negative values, which should be discarded.
Must create at least three functions:
1. To read in values entered at the keyboard,
2. To process the input values,
3. To output the required values.
i need some serious help...what formula would i have to use?
Open Box
An open box is made from a piece of rectangular cardboard by cutting out squares of equal size from
the four corners and bending up the sides.
What size should the squares be to obtain a box with largest possible volume? The length and width
of the cardboard are given by user.
Write a C++ program that can solve the problem. Allow your program run again and again as often as
the user wishes.
For example,
For the entered sides 16 and 30 of the cardboard, the size of the cut is 3.33 and the maximum
volume of the box is 725.93
For the entered sides 20 and 16 of the cardboard, the size of the cut is 2.95 and the maximum
volume of the box is 420.11
Note:
Validate your input values to detect characters and negative values, which should be discarded.
Must create at least three functions:
1. To read in values entered at the keyboard,
2. To process the input values,
3. To output the required values.
i need some serious help...what formula would i have to use?

how is he going to explain his teacher what he did? 