import java.util.Scanner;
public class JavaApplication41 {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String language = scan.nextLine();
if (language.toLowerCase().equals("java")){
System.out.println("Awesome!");
}
else if (language.toLowerCase().equals("python")){
System.out.println("A very simple language!");
}
else if (language.toLowerCase().equals("ruby")){
System.out.println("Are you sure?");
}
else if (language.toLowerCase().equals("javascript")){
System.out.println("Easy enough");
}
else if (language.toLowerCase().equals("c")){
System.out.println("Cool!");
}
}
}
I hope this helps!
Answer:
Trojan horse
Explanation:
A Trojan horse is malicious software that masquerades as a legitimate computer program such as a video game, image file, utility program, or even an antivirus so as to entice the user to run it, thereby allowing an attackers (the developer of the malicious program) to gain access to the data on the computer in an illegal manner.
a. Throwing the exception
b. Completely handling the exception
c. Rethrowing the same exception for the calling environment
d. Partially processing of the exception
Answer:
A.
Explanation:
because its throwing the exception
Answer:
Centralized Processing
Explanation:
Centralized processing was developed to process all of the data in a single computer, and since the first computers were stand-alone with all input and output devices in the same room, only the largest organizations could afford to use centralized processing.
Answer:
you suck
Explanation:
Scroll Lock
Pause/Break
Backspace
Answer:
1.
if(y==0.3){ x = 100;}
2.
if(y == 10){
x = 0; }
else {
x = 1; }
3.
if(sales< 10000){
commission = 0.10;
}
else if(sales>= 10000 && sales <= 15000 ){
commission = 0.15;
}
else{
commission = 0.20;
}
Explanation:
The statements written in brackets represent the conditions while the statements in {...} represent the operation that would be executed depending on the outcome of the if statement.
For 1: if(y==0.3){ x = 100;}
If y is 0.3, 100 would be assigned to x
For 2:
if(y == 10){ x = 0; }
If y is 10, 0 would be assigned to x
else { x = 1; }
If otherwise, 1 would be assigned to x
For 3:
if(sales< 10000){commission = 0.10;}
Is sales is less than 10000, commission would be 0.10
else if(sales>= 10000 && sales <= 15000 ){commission = 0.15;}
If sales is within range of 10000-15000, commission would be 0.15
else{commission = 0.20;}
If otherwise, commission would be 0.20