Description
In designing a building, structural engineers must determine whether each of the steel columns supporting the building meets the criteria for required load. The required load is related to the weight that the column supports. To be safe, all three of these conditions must be met:
-
The column width must be no smaller than:
minimum width = 8.5 inches. When you design a column, this is called the allowance limit. -
To prevent the column from buckling, make sure this requirement is met:
required load ≤ 17,000 / (L²) × (weight/height)
where L² is expressed in square inches, weight in pounds, and height in inches. -
To prevent the column from compressing, make sure this requirement is met:
required load ≤ 4 × (area × stress limit)
where area × stress limit in maximum allowable stress applied to the column.
Write a program that determines whether a steel column meets the criteria given above. The program must ask the column’s width, height, and weight. Specifically, it must:
-
Ask the user for width in inches, height in inches, and weight in pounds.
-
Determine if the column meets the above three requirements.
-
Output a clear message telling whether the column meets the requirements or fails, and if it fails, which requirement(s) were not met.
In the sample scenario, each column’s minimum height is units of feet, whereas the formula requires height in units of inches.
Do not forget to use a proper style in your ColumnEvaluation.java file
(including comments and a program section at the top of the file).
Sample session:
Another sample:
Notes:
-
The program must compile without syntax errors. If the best over 50% of the program logic has not been developed, your program is mentally correct.
-
To get full credit for an assignment, your program must solve the assignment problem completely.
-
Please add comments to the source code. Your program should have a reasonable number of comments.
-
At the very beginning of the class, there should be a block comment containing student name, class, section number, and a brief program description.
-
Follow the programming style and guidelines discussed in class, such as using meaningful names for variables and camel case convention for variables, classes, etc.