Question: c programming 1. A cantilever beam (fixed at the left end and free at the other) of length L is pictured below. It is subjected

 c programming 1. A cantilever beam (fixed at the left end

c programming

1. A cantilever beam (fixed at the left end and free at the other) of length L is pictured below. It is subjected to load P = 200 lb at the end. Such loading results in deflection of the beam downward and a resulting curvature of the beam. DEFLECTIONS AND SLOPES OF CANTELEVIER BLAMS 8. - (1) - deflection at right end of beam (L) angle at right and of beam PL 361 Consider a steel cantilever beam with modulus of elasticity E = 30* 106 lb/in? Write a program to calculate the deflection at the end of the beam (66) for a given cross 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 beam to a value between 16 and 24 Enches by using a while data validation loop. Print a menu for the user to select the type of cross section of the beam. The user should enter a letter corresponding to one of the following options: R===> rectangular cross section T ===> triangular cross section C===> circular cross section Use a switch statement to calculate the moment of inertia I for the different cases according to the formulas shown below. Within each case, the user should be prompted to enter base, height, and/or radius as appropriate. 36 Include a default for an improper choice. Also make sure your switch statement can accommodate both upper and lower case letters. Once the moment of inertia has been determined, calculate the deflection from the formula: deflection = (PL)(3EI). Print the deflection at the end of the beam in inches, in exponential notation, with 4 digits after the decimal point When the program is working, modify it using a while or do...while loop so that the program will continue prompting the user to see if the program is to be run again for a different cross section and/or cross sectional dimensions. After the deflection is printed the user will be asked if he/she wants to do another deflection calculation. He/she might enter Y (or 1) to continue or N (or 2) to quit

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!