Answer:
import java.util.Scanner;
public class num8 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Enter first number");
int X = in.nextInt();
System.out.println("Enter second number");
int Y = in.nextInt();
int Z;
if(X <= Y){
Z = 0;
}
else if(X >= Y){
Z = 1;
}
}
}
Explanation:
- The program is implemented in Java
- In order to set the values for X and Y, The Scanner class is used to receive and store the values in the variables (Although the questions says you should assume these values are set)
- The if conditional statement is used to assign values (either 0 or 1) to variable Z as required by the question.
Answer:
d. They serve to help educate users on how to use software more securely.
Explanation:
A software policy can be defined as a set of formally written statements that defines how a software application or program is to be used.
The purpose of application software policies is that they serve to help educate users on how to use software more securely. It must be easy to read, learn and understand by the end users.
Answer:
sniffer programs
Explanation:
Software applications called <u>sniffer programs</u> provide the means to record information that passes through a computer or router that is handling Internet traffic.
Answer:
La cilindrada total del motor es de 1997,025 centímetros cúbicos.
Explanation:
Para determinar la cilindrada total Vt en un motor de 4 cilindros de 83,6 mm de diámetro por 91 mm de carrera se debe realizar el siguiente cálculo, sabiendo que para calcular la cilindrada de un motor se debe utilizar la fórmula ((Pi x Diámetro^2)/4) x Carrera x Número de cilindros = X:
((3.14 x 83.6^2)/4) x 91 x 4 = X
((3.14 x 6,988.96)/4) x 364 = X
(21,945.3344 / 4) x 364 = X
5,486.3336 x 364 = X
1,997,025.4304 = X
1 milímetro cúbico = 0.001 centímetro cúbico
1,997,025.4304 milímetros cúbicos = 1997.0254304000005 centímetros cúbicos
Por lo tanto, la cilindrada total del motor es de 1997,025 centímetros cúbicos.
Answer:
def length( mystring):
count = 0
for i in mystring:
count += 1
return count
def reversed( mystring):
strlist = []
for i in range(length(mystring)):
strlist.append(mystring[(length(mystring) - 1) - i])
txt = "".join(strlist)
return txt
string = 'Yolanda'
print(reversed(string))
Explanation:
The python module defines two functions 'reversed' and 'length'. The length function counts the number of characters in a string variable while the reversed function reverses the string variable value.