Answer:
Header files serve two purposes. System header files declare the interfaces to parts of the operating system. You include them in your program to supply the definitions and declarations you need to invoke system calls and libraries.
Answer:
The program to this question can be given as:
Program:
#include <stdio.h> //include header files
#include<math.h>
int main() //main method
{
double treeHeight = 0.0; //declare variables
and assign value
double shadowLength = 0.0;
double angleElevation = 0.11693706;
// (0.11693706 radians = 6.7 degrees) convert number into angle.
shadowLength = 17.5;
treeHeight = shadowLength * tan(angleElevation); //convert number into angle
printf("Tree height: %lf\n", treeHeight); //print value.
return 0;
}
Output:
Tree height: 2.055778
Explanation:
In the above C language program firstly we include the headers. In this header file, we include a (math.h) header file this file helps to use the math function. Then we declare the main method in the main method we declare the variable that is given in the question that are treeHeight, shadowLength , angleElevation. All the variable datatype is double because it stores the floating-point value. Then we apply the formula that is treeHeight = shadowLength * tan(angleElevation). In this formula, the treeHeight variable holds the value. Then we print the variable value for print the double value we use the lf(that is long float).
The number of memory words used to store the string "rainbow" is 8.
Answer:
if(x>12 || x<34)
Explanation:
Mashing the two together using the or '||' operator would allow to run both necessary functions for the next code.
Answer:
See explanation below.
Explanation:
File organization is very important especially when one is working with numerous files from different applications.
When you are working with spreadsheets, word processing documents, presentation slides, images and sound files, it is important to create folders and sub-folders to make locating your files a lot easier.
- Make sure you have all your files saved with names that are relevant to your school project.
- Create a sub-folder to store all spreadsheets files, create a sub-folder to store all word processing files, create a sub-folder to store all presentation slides and create another folder to store images and sound files. You do this to make it easy for you to locate whichever file you want.
- You create the sub-folder by right clicking on your documents section and clicking on new folder. Type in the name of the folder and save.
- After creating sub-folders, create a general folder for all your folders by using the same method in step 3. Copy all your sub-folders into this major folder. You can name this folder the name of your school project.
This way, you never have to look for any files for your school project.