Answer:
The method definition to this question can be given as:
Method definition:
double max(double x, double y) //define method with double parameter
{
if (x>=y) //check condition.
return x; //return value
else
return y; //return value
}
double max(int x, int y) //define method with integer parameter
{
if (x>=y) //check condition
return x; //return value
else
return y; //return value
}
double max(char x, char y) //define method with char parameter
{
if (x>=y) //check condition
return x; //return value
else
return y; //return value
}
Explanation:
The above method definition can be described as below:
- In the first method definition first, we define a method that is "max()". In this method we pass two variables as a parameter that is "x and y" and the datatype of this is double. Then we use a conditional statement. In the if block we check if variable x is greater then equal to y then it will return x else it will return y.
- In the second method definition, we define a method that is same as the first method name but in this method, we pass two integer variable that is "x and y". Then we use a conditional statement. In the if block we check if variable x is greater then equal to y then it will return x else it will return y.
- In the third method definition, we define a method that is same as the first and second method name but in this method, we pass two char variable that is "x and y". Then we use a conditional statement. In the if block we check if variable x is greater then equal to y then it will return x else it will return y.
Answer:
a=input("Amount in pennies")
b=int(a)
dollars=0
dimes= 0
quarters=0
nickels=0
pennies = 0
dollars = int(b/100)
b= b- dollars *100
quarters=int(b/25)
b=b-quarters*25
dimes = int(b/10)
b = b -dimes*10
nickels=int(b/5)
b=b - nickels * 5
pennies = b
print(dollars)
print(dimes)
print(nickels)
print(pennies)
Explanation:
The required program is in answer section. Note, the amount is entered in pennies.
<span>The customer's endpoint device on the WAN is called the Data Terminal Equipment (DTA).
WAN is wide area network, referring to a network that extends over a large area. DTA is an end instrument which converts information into signals.</span>
Answer: C
Time shifting is when you move from one period in time to another.
Answer:
ISO 27002
Explanation:
The acronym ISO stand for The International Organization for Standardization. its a non governmental body that is responsible for setting standards guide internationally.
while NIST stand for National Institute of Standards and technology and it is also a body that is responsible for setting up standard guide in the US..
ISO 27002 is a standard code for implementing information security management systems. while ISO 27017 is for cloud security. NIST 800-12 is a general security and NIST 800-14 is for policy development. thus option A is correct.
Note :
All code preceded by ISO is from The International Organization for Standardization and are international standard. while those preceded by NIST is from National Institute of Standards and technology and are not international standard.