Menu

[Solved]1 Kite String Filename Kitestringc Write Program Kitestringc Calculate Amount String Neede Q37210015

kitestring.c

Should be written in C1. Kite String//Filename: kitestring.c Write a program, kitestring.c, to calculate the amount of string needed to fly a kite

1. Kite String//Filename: kitestring.c Write a program, kitestring.c, 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 holdHeight 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 2n/7, with 0.25 m of string around the holder, which is held 0.8 m above the ground. NOTE: The variables kiteHeight, holdHeight, and stringwound should be declared and initialized in the C program and NOT input by the user NOTE: In order to represent the value of π, declare a variable (float pi) that has a value of 3.14159. NOTE: In C, there is a function called sin that allows you to take the sine of an angle. In order to use this function, you must include the math.h library. Therefore, at the beginning of your C program, you should have the following two lines of code: #include #include <stdio.h> 〈math.h> Show transcribed image text 1. Kite String//Filename: kitestring.c Write a program, kitestring.c, 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 holdHeight 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 2n/7, with 0.25 m of string around the holder, which is held 0.8 m above the ground. NOTE: The variables kiteHeight, holdHeight, and stringwound should be declared and initialized in the C program and NOT input by the user NOTE: In order to represent the value of π, declare a variable (float pi) that has a value of 3.14159. NOTE: In C, there is a function called sin that allows you to take the sine of an angle. In order to use this function, you must include the math.h library. Therefore, at the beginning of your C program, you should have the following two lines of code: #include #include 〈math.h>

Expert Answer


Answer to 1. Kite String//Filename: kitestring.c Write a program, kitestring.c, to calculate the amount of string needed to fly a … . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *