Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please answer in a .c program using C++ language only use and or and also CRT_SECURE_NO_WARNINGS Once the moment of inertia has been determined, calculate

please answer in a .c program using C++ language
only use and or and also CRT_SECURE_NO_WARNINGS
image text in transcribed
image text in transcribed
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. 1. A cantilever beam (fixed at the left ead 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 CANTILEYER BEAMS 2. 2 PE 5 - (L) - dollection at right end of beam 8, () - angie st right and of boum Bot Consider a steel cantilever beam with modulus of elasticity E= 30* 100 lbfin? Write a program to calculate the deflection at the end of the beam (b) 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 inches 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 inertial 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. IV DO Include a default for an improper choice. Also make sure your switch statement can accommodate both upper and lower case letters

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_2

Step: 3

blur-text-image_3

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

Big Data Concepts, Theories, And Applications

Authors: Shui Yu, Song Guo

1st Edition

3319277634, 9783319277639

More Books

Students also viewed these Databases questions