Answer:
2
Explanation:
if-else is the statement that is used for checking the condition and if the condition is True, then execute the statement otherwise not executed.
initially, the value of n1 = 3, n2 = 6, n3 = 2, sumtotal = 4.
after that, if statement checks for the condition.
3 != 4
condition is TRUE, then the statement sumtotal -= n3; will be executed.
write the statement in simple form:
sumtotal = sumtotal - n3;
so, sumtotal = 4-2 = 2.
after that, the program does not check the further and exit the if-else statement.
Therefore, the answer is 2.
Answer:
hope it helps dear, please let me know! what is the question exactly....in words?good luck
Answer:
1100 ; 11000 ; 110000 ; 1100000
Explanation:
Converting the following decimals to binary :
2__12
2__6 r 0
2__3 r 0
2__1 r 1
___0 r 1
12 = 1100 base 2
2.)
2__24
2__12 r 0
2__6 r 0
2__3 r 0
2__1 r 1
___0 r 1
24 = 11000 base 2
2__48
2__24 r 0
2__12 r 0
2__6 r 0
2__3 r 0
2__1 r 1
___0 r 1
48 = 110000 base 2
2__96
2__48 r 0
2__24 r 0
2__12 r 0
2__6 r 0
2__3 r 0
2__1 r 1
___0 r 1
96 = 1100000 base 2
Answer:
Answer written in python.
Explanation:
#ask user for the first integer.
first_number = int(input("enter first number: "))
#ask user for the second integer
second_number = int(input("enter second number: "))
#add both and store in a variable, result.
result = first_number + second_number
#print out the result
print ( f"the answer to the problem is {result} calculated by adding {first_number} to {second_number}")
The worded lines after the # sign are called comments and are used to describe what the following lines of code does making it easier to read and understand by other programmers or by the same programmer coming back to it after a while.
Answer:
There is a need for a microphone and a speaker in the form of a headset for privacy, also, the conventional keyboard and monitor screen. For information security, a configured firewall is recommended to prevent hacking.
Explanation:
Input and output devices are tools used by an operator of a computer device to give instructions and monitor results respectively.
Jason would need a headset, which has a speaker for hearing and a microphone for speaking to the client on a video conference call. These I/O devices are readily available on some personal computers. Every computer system has a keyboard and a monitor, this is also useful for Jason for communicating with his client.