Used to talk to people, chat with people on mobile.
Answer:
from socket import *
hostname = input('Enter the host to be scanned: ')
ip_add = gethostbyname(hostname)
connections = [ ]
for i in range(133, 136):
s = socket(AF_INET, SOCK_STREAM)
conn = s.connect_ex((ip_add, i))
print(conn)
connections.append(conn)
if 0 in connections:
print ('Host is online')
s.close()
else:
print ('system is unreachable')
Explanation:
The python source code above scans for all the available range of ports in the provided hostname, if any port is available, the host is online else the program print the error message "system is unreachable.
Evaluation of one’s own worth is termed as self-esteem. Each person will take the defeat and pointed out mistake in different manner. One person may shout if somebody points out mistake and another may handle it with smile. Self-esteem plays the role here.
Self image is an imaginary of picture of how an individual is in their own perspective and how the same person in the view of other person’s perspective. This is one of the important traits of the people.
Self-value: Setting a value of one self, analyzing various situations and facts and stamping the seal as either “good” or “bad” is called self-value.
Answer:
if (pH<7.0){
neutral=0;
base=0;
acid=1;
}
else if (pH>7.0){
neutral=0;
base=1;
acid=0;
}
else if (pH==7.0){
neutral=1;
base=0;
acid=0;
}
Explanation:
As required by the question, if and else statements have been used to test the value of the pH and assign the apropriate values to the variables neutral, base and acid.
The code snippet below can be used to prompt the user to enter values for pH
<em>import java.util.Scanner;</em>
<em>public class pHTest {</em>
<em> public static void main(String[] args) {</em>
<em> Scanner scr = new Scanner(System.in);</em>
<em> System.out.println("Enter a value for the pH");</em>
<em> int neutral, base, acid;</em>
<em> double pH = scr.nextDouble();</em>
<em> if (pH<7.0){</em>
<em> neutral=0;</em>
<em> base=0;</em>
<em> acid=1;</em>
<em> }</em>
<em> else if (pH>7.0){</em>
<em> neutral=0;</em>
<em> base=1;</em>
<em> acid=0;</em>
<em> }</em>
<em> else if (pH==7.0){</em>
<em> neutral=1;</em>
<em> base=0;</em>
<em> acid=0;</em>
<em> }</em>
<em>} }</em>
Well the drone could go over the city then with that footage make a 3D model of what it probably looked like