Answer:
The following are the program in the Python Programming Language.
#import system
import sys
#define function
def gcd(p,q):
#check that q is equal to 0
if(q==0):
#then, it returns the output
return p
#it returns the common divisor
else:
return gcd(q,p%q)
#get the command-line input
x=sys.argv[1]
#get the command-line input
y=sys.argv[2]
#convert input into the integer
p=int(x)
#convert input into the integer
q=int(y)
#call and print the function
print(gcd(p,q))
Explanation:
<u>The following are the description of the program</u>.
- Firstly, we import the required package and define a function 'gcd()', pass arguments 'p' and 'q' and inside the function.
- Set the if conditional statement to check that the variable 'q' is equal to 0 then, it returns the value of 'q' and otherwise, it returns the greatest common divisor value.
- Finally, we set two variables 'x' and 'y' in which we get input from the command line then, convert the input of the both variable into integer and store them in other variables 'p' and 'q', after all, call and print the following function.
Answer: forecast the project's timeline, estimate the level of effort and amount of resources needed. During this phase
Answer:
The video card needs to be replaced
Explanation:
The video card is a part of the motherboard that controls the graphic renderings of the computer. Once this is faulty, it can lead to several issues ranging from computer freezes or computer crashes to most commonly, laptop black screens.
The most common test to see if the "black screen fault" is from the video card, is to connect the laptop to another monitor that has its own graphics rendering instrument. If it works on that monitor, Then the video card of the laptop is the problem.
Since this is the case detailed in the problem above, the video card of the laptop needs to be replaced.
Answer: False
Explanation:
The statement in the question is wrong. When measuring processor speed, a megahertz is slower than a gigahertz.
We should note that:
1 megahertz = 1 million cycles per second
1 gigahertz = 1 billion cycles per second.
Therefore, we can see that a gigahertz is faster than a megahertz.
Answer:
C) Plan, write, format, and proofread
Explanation:
You need a plan for any professional newspaper. Proofreading is also a vital step in the process. You can only format what you've already written, so it has to be C.