Need helping writing this MATLAB program..please show all code used..Thanks! Kit
ID: 2993990 • Letter: N
Question
Need helping writing this MATLAB program..please show all code used..Thanks!
Kite string. Write a program, kitestring.m, to calculate the amount of string needed to fly a kite at a height kiteHeight and at an angle theta to the horizon. Assume the person holds the kite a distance hold Height above the ground and wants to have a minimum length of stringWound wound around the string holder. Run the program for a height of 8.2 m, an angle of 2pi/7, with 0.25 m of string around the holder, which is held 0.8 m above the ground. Use the disp function to display the kite string length in the command window. Convert the program to allow the player to input kiteHeight and theta.Explanation / Answer
clc
kiteHeight = input('Please input kiteHeight: ');
theta = input('Please input theta: ');
holdHeight = input('Please input holdHeigh: ');
stringWound = input('Please input stringWound: ');
stringLength = (kiteHeight-holdHeight)/sin(theta) + stringWound;
disp('Length of String =');
disp(stringLength);
The answer is
9.715 m
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.