Answer:
1. Modified formulae for calculating tree height.
.
2. C++ program to calculate tree height.
#include<iostream>
#include<math.h>
using namespace std;
int
main ()
{
double treeHeight, shadowLenghth, angleElevation;
cout << "Please enter angle of elevation and shadow length" << endl;
cin >> angleElevation;
cin >> shadowLenghth;
//Modified formulae to calculate tree height.
treeHeight = tan (angleElevation) * shadowLenghth;
cout << "Height of tree is:" << treeHeight;
}
Output:
Please enter angle of elevation and shadow length
45
12
Height of tree is:19.4373
Explanation:
Since no programming language is mentioned, so solution is provided using C++.
In the above C++ program, first angle of elevation and length of shadow provided by user will be stored in variables angleElevation and shadowLength.
Then using the modified formalue height of tree will be calculated and stored in variable treeHeight. Final result is displayed to user.
Answer:
(A) myArray BYTE 10, 20, 30
Explanation:
The general syntax of array declaration in assembly is given by
Array_Name TYPE value1, value2,...
where type can be BYTE, WORD, DWORD, QWORD, REAL4 etc
where values can be in decimal, binary, or hexadecimal
Example:
Let us define an array of type unsigned byte and named myArray containing decimal values of 10, 20, and 30.
myArray BYTE 10, 20, 30
Hence only option A is the valid data definition.
I beleive its b. Because mbgs is the biggest
The knowledge serves as good foundation for me to understand how technology works behind the scene as well. So I must say a good understanding of computer architecture gives the data scientist the ability to propose feasible solution in capturing and maintaining data, implementing models and algorithms in IT systems.