Answer:
The function in Python is as follows:
def d2x(d, x):
if d > 1 and x>1 and x<=9:
output = ""
while (d > 0):
output+= str(d % x)
d = int(d / x)
output = output[::-1]
return output
else:
return "Number/Base is out of range"
Explanation:
This defines the function
def d2x(d, x):
This checks if base and range are within range i.e. d must be positive and x between 2 and 9 (inclusive)
if d >= 1 and x>1 and x<=9:
This initializes the output string
output = ""
This loop is repeated until d is 0
while (d > 0):
This gets the remainder of d/x and saves the result in output
output+= str(d % x)
This gets the quotient of d/x
d = int(d / x) ----- The loop ends here
This reverses the output string
output = output[::-1]
This returns the output string
return output
The else statement if d or x is out of range
<em> else:</em>
<em> return "Number/Base is out of range"</em>
<em />
If( caryear >= 2000 ):
print "probably has air bags.\n"
elif( caryear >= 1990 ):
print "probably has anti-lock brakes.\n"
elif( caryear >= 1970 ):
print "probably has seat belts.\n"
else:
print "probably has few safety features.\n"
D)Exhaustion
Hope this helps
The level of system and network configuration is required for Cui will be "Moderate confidentiality".
- The data that really should be safeguarded or disseminated under appropriate regulations, rules, and conservative government objectives or guidelines, would be considered as CUI.
- The FISMA demands CUI Fundamental to somehow be safeguarded somewhere at the FISMA Conservative category and may even be labeled as CUI as well as regulated.
Thus the above answer is right.
Learn more:
brainly.com/question/14083709