1. A simple truss is shown in the figure below. The 3-member truss is supported by a pin at joint A and a roller at joint C. There is a load P (in Newtons) being applied at joint B in the positive horizontal direction. The following equations describe the reaction forces at joints A and C as well as the member forces (FAB, FAC, FBC):

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?

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?

### Recently Asked Questions

- Please help me solve this problem using the attachments. Please only use the statistical table I uploaded for the data.

- Why are mothers better in taking care of their children

- In a 3 reaction system, the first two reactions are endothermic with delta H values of 138 kJ and 241 kJ respectively. If the final value is exothermic, what