N = 0
string temp;
if wordset[0] != wordset[1] then {
n = n + 1
}
temp = wordset[0]
for i = 1 to wordset.length - 2 do {
if wordset[i] != temp AND wordset[i] != wordset[i + 1] then {
n = n + 1
}
temp = wordset[i]
}
}
Answer:
The marks in sequence are as follows:
- make lower case
- add space
- remove space
- do not delete
Explanation:
We will look upon the symbols one by one.
In the first line, the mark on Q is for "making it lower case"
In the second line, the mark with # means that space needs to be inserted there.
In the third line, the mark used with "fo x" means that the space between fo and x needs to be deleted
And in the last line, the mark with stet written in circle means "let it stand" or "do not delete"
Hence,
The marks in sequence are as follows:
- make lower case
- add space
- remove space
- do not delete
Answer:
import numpy as np
a = int(input ("Enter a"))
b = int(input ("Enter b"))
c = int(input ("Enter c"))
d = int(input ("Enter d"))
c1 = int(input ("Enter c1"))
c2 = int(input ("Enter c2"))
array1 =[[a, b],[c, d]]
A = np.array (array1)
B = np.array ([c1, c2])
X = np.linalg.inv (A).dot (B)
print (X)
Explanation:
let ax + by =c1
cx + dy =c2
We have used the above NumPy library that has the methods for matrix calculation, and here we have used matrix multiplication, and the inverse of a matrix to find the value of x and y.
We know AX=B
X = inv A. B
And this we have used above. We can calculate inv A and do matrix multiplication using NumPy. And thus we get the above solution.
No what’s your problem on edge
Answer: DMZ
Explanation:
DMZ is the demilitarized zone network and it is use in providing he various services to the users or customers by using the public internet. It basically contain organizational services in the logical and physical sub-network and usually works in large network.
The main purpose of DMZ that it is use as web server over the internet for reaching to the users and customers. It also add one additional layer in the organization for security purpose.
Some of the services that DMZ provides as web server, DNS and proxy server.