programming with c language

profilegudstudnt
test_1_s2015_dedp.docx

ENGR 200 SPRING, 2015

TEST 1: CANTILEVER SPAR DEFLECTION

DUE: Feb. 10, 2015 by 11:59 pm CT POINTS: 50

INTRODUCTION:

An aircraft wing spar is the main beam that runs the length of the wing. Some aircraft wing spars that are manufactured today for experimental aircraft are still made of wood. The wood chosen by aircraft designers is Sitka Spruce. It has a high strength to weight ratio, it has excellent resistance to decay, and when properly sealed it has a very low moisture absorption rate which makes it ideal for the aircraft industry. During the design of an aircraft wing, spar stress analysis is an important component of the structural analysis before the wing is constructed. In many instances the spar is designed as a cantilever beam, which is fixed at one end and is free to move at the other. The amount of static loading that a spar can withstand is determined by the amount of deflection the spar will have when a weight is applied. The deflection can be calculated by the following equation:

where W = applied weight in pounds

a = length from fixed end to applied weight in feet

E = elasticity of material

I = moment of inertia for the beam

L = beam length in feet

The moment of inertia is determined by

where base = thickness of the beam

height = beam height

The wing spar for this problem is 0.75” x 5” x 15’. The applied load is 1500 pounds. The modulus of elasticity of Sitka Spruce is 1.46 x 106 psi. The modulus of elasticity must be defined as a symbolic.

TEST:

Write a C program that will allow the user to enter the wing spar dimensions, the applied load in pounds, and the position along the spar of the applied load in feet. After entering the required values the program will compute the deflection of the spar and the results will be printed to the computer screen. Use the power function to compute all values that need to be raised to a power, such as a2 in the deflection equation.

Use proper and meaningful variable names but keep them short. As an example, for modulus of elasticity you could use elast. Your program must have a title block, program description, list of variables and their descriptions, and comments within the program. You will be graded on correct computed output, output format as shown below and programming form.

COMPUTER SCREEN OUTPUT FORMAT:

SUBMITTING PROCEDURES:

Make sure that the source file is named as follows:

section#_test1_firstname_lastname

An example would be: 9_test1_elmer_fudd

To submit your completed C program, you must select the Assignments button in Blackboard, then click on TEST #1, scroll down to Item 2, select Browse My Computer, and attach your program file (must be the source program). Then select the Submit button.

2

Deflection

W

(

)

a

2

(

)

2

E

(

)

I

(

)

L

a

3.0

-

æ

ç

è

ö

÷

ø

×

I

base

(

)

height

(

)

3

12