Answer:
Altitude of the town(h1) = 1,196.8 m
Explanation:
Given:
Height of barometer(h) = 65 cm Hg = 0.65
Standard atmospheric pressure = 76 cm Hg = 0.76
Density of mercury(Pm) = 13,600 kg/m³
Density of air (Pa) = 1.25 kg/m³
Find:
Altitude of the town(h1)
Computation:
Pressure due column = Δp mercury column
(Pa)(h1) = (Pm)(h)
(1.25)(h1) = (13,600)(0.76-0.65)
(1.25)(h1) = 1,496
Altitude of the town(h1) = 1,196.8 m
Write a method, getFirstLine, that is passed a String argument and that returns the first line. (Recall that lines are terminated with the "\n" character.) Assume that the argument contains at least one complete, newline-terminated line.
My Solution:
public String getFirstLine(String a)
{
String[] myLines = a.split("\n");
return(myLines[0]);
}
Answer: The answer to this question can be given as:
Method definition :
String getSecondLine (String aString) //define function getSecondLine()
{
return aString.substring(aString.indexOf("\n") + 1, aString.indexOf("\n") + 1 + aString.substring(aString.indexOf("\n") + 1, aString.length()).indexOf("\n"));
//return value.
Explanation:
A college marketing department has a networked storage device that uses the IP address 10.18.7.5, TCP port 443 for encryption, and UDP port 4365 for video streaming. The college already uses PAT on the router that connects to the Internet. The router interface has the public IP address of 209.165.200.225/30. The IP NAT pool currently uses the IP addresses ranging from 209.165.200.228-236. Which configuration would the network administrator add to allow this device to be accessed by the marketing personnel from home
Answer:
The answer to this question can be defined as follows:
Explanation:
The static NAT stands for (static Network Address Translation), which enables the user to modify a single interpretation for a local second-order to the external environment addresses, and all IP and port numbers were also transcribed inside to random traffic as well as from outside with the internal traffic.
It is used to map network traffic by an internal IP address from a static external IP address. It provides a fixed conversion for actual addresses onto maps. It offers Internet access to the network equipment via a private LAN with such a private IP address which is not recorded.Please find the attachment of the ip address.Which of the following statements is false? a. The Java API consists of packages. b. The Java API helps programmers avoid "reinventing the wheel." c. The Java API consists of import declarations. d. None of the above.
Answer:
The answer is "Option c".
Explanation:
In Java programming, the API stands for "application programming interface", which is also known as the lists of all classes in the JDK. It contains all packages, classes, and interfaces, with their techniques, fields. It is a built-in class, which gives the programmer a great deal of usability, and correct choices can be described as follows:
In option a, It is correct because it imports the package to use API. In option b, It allows you to "re-invent the wheel" by developers, that's why it is correct.