Answer:
Using the Python Programming Language:
def isRed(myString):
if "red" in myString:
return True
else:
return False
Explanation:
The function definition is given above. To output the result of calling this function, we declare a string variable and call the function inside a print statement. See the two lines of code below:
myString= "My house is coloured red"
print (isRed(myString))
Notice that we defined the function called isRed to receive a string as a parameter, Then using the in keyword with an if statement, we check for the presence of the word 'red' in the string that is passed as argument to the function, the function will then return True if the word 'red' is present or False if it is not.
Answer:
PROGRAM QuadraticEquation
Solver
IMPLICIT NONE
REAL :: a, b, c
;
REA :: d
;
REAL :: root1, root2
;
//read in the coefficients a, b and c
READ(*,*) a, b, c
WRITE(*,*) 'a = ', a
WRITE(*,*) 'b = ', b
WRITE(*,*) 'c = ', c
WRITE(*,*)
// computing the square root of discriminant d
d = b*b - 4.0*a*c
IF (d >= 0.0) THEN //checking if it is solvable?
d = SQRT(d)
root1 = (-b + d)/(2.0*a) // first root
root2 = (-b - d)/(2.0*a) // second root
WRITE(*,*) 'Roots are ', root1, ' and ', root2
ELSE //complex roots
WRITE(*,*) 'There is no real roots!'
WRITE(*,*) 'Discriminant = ', d
END IF
END PROGRAM QuadraticEquationSolver
In"last month, our sales rose when we increased prices by 15%, so we should raise our prices another 15% this month." the logical fallacy is Confusing a correlation for a cause-and-impact courting.
<h3>What is a logical fallacy?</h3>
A logical fallacy is a assertion that appears to be authentic till you observe the regulations of logic. Then, you recognize that it is not. Logical fallacies can regularly be used to deceive people – to trick them into believing something they in any other case wouldn't.
In many ways, the put up hoc ergo propter hoc fallacy is a particular subset of the fallacy in which a person might also additionally anticipate a causational courting from one that would simply be a wonderful correlation.
Read more about the fallacy :
brainly.com/question/1971023
#SPJ1
Since their or two domain controller and where their or three active directory is associates.
- As first check the tcpip ranges to be checked if both falls on same tcpip address. Better to change the one from tcpip address.
- Second is host and subdomain has to checked and reconfigure if necessary.
- Computer name and connected their group to be checked.
- With NSLOOKUP command from disk operation system come check ping tracking reply is positive or negative.
When we query for DNS, end user need to see the positive reply from list of servers. Possible for scanning the IPV6 address across the domains and find as positive or negative response. End user has to decide the primary and secondary domain controller’s
Normally secondary domain controller’s as to be configured as standard alone. On success on deciding primary and secondary domain controller’s automate the process from primary to secondary by configuration with ns records. Possible for domain partition also.