Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Question 1: Write a TUI script file to solve the problem below for the Statics p

ID: 2995203 • Letter: Q

Question

Question 1:


Write a TUI script file to solve the problem below for the Statics problem below. Before the trunk of a large tree is felled, cables AB and BC are attached as shown. Knowing that the tensions in cables AB and BC are given in the Table below, determine the Resultant Force and its associated angle exerted on the tree by the cables at B in each of the six cases. Write a TUI script file to solve the problem above Permit users to enter the sets of information AS PROVIDED IN THE TABLE. You will run this program 6 times and obtain the RESULTANT FORCE AND ITS ASSOCIATED ANGLE values for each of the six sets of values. Write your data to a formatted text file called "MYRESULTS2.TXT". Print and staple a copy of this output to your homework set.

Explanation / Answer

clc

clear all

fid = fopen('MYRESULTS2.TXT','w');

F_BA = input('Please input F_BA = ');

F_BC = input('Please input F_BC = ');

BA = [-0.75 -7 6];

BC = [4.25 -7 1];

theta=acos(length(BA)*length(BC)/dot(BA,BC));

R = sqrt(F_BA^2+F_BC^2-2*F_BA*F_BC*cos(theta));

fprintf('theta= %6.2f deg F_BA= %6.2f N F_BC= %6.2f N R= %6.2f N ',...

theta*180/pi,F_BA,F_BC,R);

fprintf(fid,'theta= %6.2f deg F_BA= %6.2f N F_BC= %6.2f N R= %6.2f N ',...

theta*180/pi,F_BA,F_BC,R);

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote