Answer:
Following are the code to this question:
def binarynumber(num):#defining a method binarynumber that accepts a parameter num
x=""#defining a string variable x
if (num!=0):#defining if condition to check number not equal to 0
while (num>=1):#defining a loop that check value is grater then equal to one
if (num %2==0):#defining if condition to check num is even
x=x+"0" #add string value 0 in num variable
num=num/2 #divide the value by 2
else:#defining else block
x=x+"1"#add string value 1 in num variable
num=(num-1)/2#first subtract 1 into num variable then divide the value by 2
else:
x="0"#assign string value 0 in num variable
return "".join(reversed(x))#return value
num = int (input ("Enter any number: "))#defining num variable that input the integer value
print (binarynumber(num))#using print method to call method binarynumber with passing num parameter
Output:
Enter any number: 12
1100
Explanation:
- In the above python code a method "binarynumber" is declared, in which the "num" variable passes as the parameter inside the method a string variable "x" is declared that stores all converted values.
- Inside the method and if the block is declared that checks number value is not equal to 0 if this condition is false then it will add string value and reverse its value.
- Or if the condition is true it defines a while loop that calculates the given number binary digits and returns its value.
- At the last step, the num variable is declared that inputs the integer value from the user end and calls the method by using the print method.
Answer:
I think it's input, not sure tho
Answer:
Matlab code is:
>> 
>> 
>> 
>> 
>> 
>>
>> ![Vc=[M(2,:) M(:,3)']](https://tex.z-dn.net/?f=Vc%3D%5BM%282%2C%3A%29%20M%28%3A%2C3%29%27%5D)
Explanation:
>>
>> 

1 7 13 19 25
3 9 15 21 27
5 11 17 23 29
>> 
>>
>> 

>> 
>>
>> 

>>
>>
>> ![Vc=[M(2,:) M(:,3)']](https://tex.z-dn.net/?f=Vc%3D%5BM%282%2C%3A%29%20M%28%3A%2C3%29%27%5D)

>>
The code is tested and is correct. If you put a semi colon ' ; ' at the end of every statement then your answer will be calculated but matlab doesn't show it until you ask i.e. typing the variable (Va, Vb, Vc )and press enter.
Answer:
a. make multiple fixes.
Explanation:
When we are troubleshooting firewalls we should not make multiple fixes after attempting a fix because it will not be beneficial for the security purpose.
We can repeat the failure after attempting the fix because we can fix it but a person with right mind won't be doing that.
We can test after each attempt that it is working properly.
We can also reverse or undo the solution failures after making a fix.
Netstat
Type netstat -a to get a complete overview.