New Subnet Mask:
255.255.255.240
First 4 subnetwork Addresses:
197.14.88.0
197.14.88.16
197.14.88.32
197.14.88.48
Answer:
Here is the Python program:
d = {5:3, 4:1, 12:2}
val_of_max = d[max(d.keys())]
print(val_of_max)
Explanation:
The program works as follows:
So we have a dictionary named d which is not empty and has the following key-value pairs:
5:3
4:1
12:2
where 5 , 4 and 12 are the keys and 3, 1 and 2 are the values
As we can see that the largest key is 12. So in order to find the largest key we use max() method which returns the largest key in the dictionary and we also use keys() which returns a view object i.e. the key of dictionary. So
max(d.keys()) as a whole gives 12
Next d[max(d.keys())] returns the corresponding value of this largest key. The corresponding value is 2 so this entire statement gives 2.
val_of_max = d[max(d.keys())] Thus this complete statement gives 2 and assigns to the val_of_max variable.
Next print(val_of_max) displays 2 on the output screen.
The screenshot of program along with its output is attached.
Answer:
Application Programs
Explanation:
Unlike the system software which interacts with the computer’s hardware to operate, the application software is designed purposely for the end users. They include programs like Word, browsers, and many other programs that we interact with every day to assist us achieve our daily tasks. We install application software according to what we want them to do for us.
Answer:
treeHeight = tangent of angleElevation * treeDistance
In java, we could write it as:
double treeHeight = (Math.tan(angleElevation) * treeDistance);
Math.tan(angleElevation) is an inbuilt java mathematical function used to calculate the tangent of a value and the return value is always double.
Explanation:
formula:
tangent of angleElevation = treeHeight/treeDistance
We want to assign treeHeight, so we cross-multiply and we get:
treeHeight = tangent of angleElevation * treeDistance
Off course, the treeHeight will be in feet also.