Write a program that determines whether a wooden column with a given height is thick enough to support a given expected load. More specifically, read in height, width, and expected load values and then print, “The column is safe.” or “The column is unsafe.” Use if-else statements and use named constants for slenderness limit, modulus of elasticity, and maximum stress. In the sample sessions, note that the user enters height in units of feet, whereas the formulas require height in units of inches.
In Java
In designing a building, structural engineers must determine whether each of the
building’s support columns is thick enough to support the column’s expected load.
Assume the column is wooden and has a solid square cross section. To be safe, all
three of these conditions must be met:
• The column should not be too slender, that is:
height / width ≤ 50, where 50 is a special value called the slenderness
limit.
• To prevent the column from buckling, make sure this requirement is
met:
expected load ≤ (0.3*E*area) / (height/width)2
,
where E = 1,700,000 psi is a special value called the modulus of
elasticity.
• To prevent the column from compressing, make sure this requirement
is met:
expected load ≤ area * stress,
where stress = 1450 psi = maximum allowable stress parallel to the
grain.
Write a program that determines whether a wooden column with a given height is
thick enough to support a given expected load. More specifically, read in height,
width, and expected load values and then print, “The column is safe.” or “The
column is unsafe.” Use if-else statements and use named constants for slenderness
limit, modulus of elasticity, and maximum stress.
In the sample sessions, note that the user enters height in units of feet, whereas the
formulas require height in units of inches.
Sample session:
Enter column width in inches: 4.0
Enter column height in feet: 15.0
Enter expected load in pounds: 5000.0
The column is unsafe.
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 4 steps with 2 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)