Write a MatLab program that does the following:

• Prompts the user to input a positive value of P

• Determines if the member forces are in tension or compression (note that a negative number denotes compression and a position number denotes tension)

• Calculates and displays the reaction and member forces

• Asks the user if they would like to continue and enter a new value

• Quits the program if the user answers no

The output should look like the following:

For the input value of 500N

Ax = 500 N (to the left)

Ay = 500 N (downward)

Cy = 500 N (up)

Fbc = 707.1 N (Compression)

Fab = 500 N (Tension)

Fac = 500 N (Tension)

Would you like to run the calculation again with a different input value?

## This question was asked on May 28, 2010.

### Recently Asked Questions

- For each of the following suggest a part on an aircraft that needs that particular material property: hardness, strength, elasticity, placidity, ductility,

- Most commercial aircraft fuselages are not circular, but an ellipse. How does this affect the calculation of the J value, and will it produce a more rigid

- A twist of 0.03 radians on a shaft equal to the diameter of your car tire, with a G = 65 GPa on a length equal to your height in meters, will it produce a