Charles Babbage is most often considered to be the father of computing after his invention of the Analytical Engine in 1837 which contained <span>Arithmetic Logic Unit (ALU), basic flow control, and integrated memory which served as a general-purpose computer concept (and also very ahead of time in 1837).</span>
Answer:
Following are the answer to this question:
x=int(input("Enter number: "))#defining x variable that input value from user end
if x< 0:#defining if block that check x value is less then 0
while x<0:#defining while loop print up to the value
print(x)#print value
x+= 1#add values by 1
elif x>0:#defining elif block to check value x is greater than 0
while x>0:#defining while loop to print down to value
print(x)#print value
x-= 1#subtract value by 1
Output:
when input is a positive value
Enter number: 5
5
4
3
2
1
when input is a negative value
Enter number: -5
-5
-4
-3
-2
-1
Explanation:
- In the given python code, x variable is declared that input the value from the user end, in the next step if and elseif block is declared that calculates and prints its value.
- In the if block, it checks value is negative it uses the while loop to prints its values in the down to value form.
- In the elif block, it checks the positive it uses the while loop to prints its values into the up to values form.
Answer:
D: Use a multimeter to test the power supply
Explanation:
We want to determine whether the power supply is causing the reboots. Now, the most ideal thing to do will be to connect a multimeter to help in testing the source of power supply. This is because a multimeter measures the major factors in power which are voltage, current and resistance and as such it is therefore a standard diagnostic tool used widely by technicians in the electrical & electronic industries.
Answer:
The answer is: c. Adding external CSS is a good practice for various reasons, including code organization.
Explanation:
External CSS improves maintainability in code.
Internal CSS has precedence over external CSS, it means that internal will overwrite external CSS, but abuse of internal CSS often makes hard to maintain HTML code on a large website.
Furthermore, it is much easier to modify one CSS(external) file that can impact multiple web pages than go into every HTML page and modify your styles per page. Many sites have hundred or more pages, go through each one wouldn't be productive.
Go on your school computer, and find a copy of the form. Then print it from the school printer.