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.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

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.

Expert Solution
Algorithm
  1. Start
  2. Take user input for height(int feet), weight(in inches) and load (in pounds)
  3. find the area using height*weight, after converting of height from feet to inches
  4. Declare the modulus of elasticity
  5. Find the slenderness limit= height / width
  6. find the expected load = (0.3*E*area) / (slenderness limit)
  7. If, slenderness limit  ≤ 50 and expected load  ≤ load(given by user), print "The column is safe."
  8. else, print "the column is unsafe."
  9. Stop
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Constants and Variables
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education