Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help with this question it should be printf and scanf please use visual studio if possible and follow the steps. 1. A cantilever

I need help with this question it should be printf and scanf please use visual studio if possible and follow the steps.

image text in transcribed

1. A cantilever beam (fixed at the left end and free at the oher) of length L is pictured below. It is subjected to load P = 200 at the end. Such loading results in deflection of the beam downward and a resulting curvature of the beam DEFLECTIONS AND SLOPES OF CANTILEVER BEAMS e,-ua-angle al tight ead of beam Consider a steel cantilever beam with modulus of elasticity E = 30 * 10"lb/in write program to calculate the defection at the end of the beam (6)for a given ross section of the beam. Define E and PI as constants. Prompt the user to input a value for the length of the beam L Restrict the length L of the bearm to a value between 16 and 24 inches. Print a menn for the user to select the type of cross section of the beam. The user should enter a letter correspooading to one of the following options R--> rectangular cross section T- = > triangular cross section C > circular cross section Usea switch staternent to calculate the moment of inertia 1 for the different cases sccording to the formulas showa below. Within each case, the user should be prompted to enter base, height, andlor radius as approgriate. Include a default for an improper choice. Also make sure your switch statement can accommodate both upper and lower case letters PL BE Calculate the deflection from the formula: deflection Print the deflection at the end of the beam in inches, in exponential notation with 4 digits after the decimal point. 1. A cantilever beam (fixed at the left end and free at the oher) of length L is pictured below. It is subjected to load P = 200 at the end. Such loading results in deflection of the beam downward and a resulting curvature of the beam DEFLECTIONS AND SLOPES OF CANTILEVER BEAMS e,-ua-angle al tight ead of beam Consider a steel cantilever beam with modulus of elasticity E = 30 * 10"lb/in write program to calculate the defection at the end of the beam (6)for a given ross section of the beam. Define E and PI as constants. Prompt the user to input a value for the length of the beam L Restrict the length L of the bearm to a value between 16 and 24 inches. Print a menn for the user to select the type of cross section of the beam. The user should enter a letter correspooading to one of the following options R--> rectangular cross section T- = > triangular cross section C > circular cross section Usea switch staternent to calculate the moment of inertia 1 for the different cases sccording to the formulas showa below. Within each case, the user should be prompted to enter base, height, andlor radius as approgriate. Include a default for an improper choice. Also make sure your switch statement can accommodate both upper and lower case letters PL BE Calculate the deflection from the formula: deflection Print the deflection at the end of the beam in inches, in exponential notation with 4 digits after the decimal point

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

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David J. Auer

3rd Edition

0131986252, 978-0131986251

More Books

Students also viewed these Databases questions