/*
Since we have to check the first two options only as mentioned in last part of question the loop will work 2 times only and will compare the cost of first element and second and assign the healthoption accordingly
*/
for(int i =0;i<=1;i++){
if(annualCost[i]<annualCost[i+1]
best2 = healthOption[i]
else
best2 = healthOption[i+1]
}
// This command takes input from the user.
Scanner input = new Scanner(System.in);
int response= input.nextInt();
// Making the variables required
int noCount =0 ;
int yesCount =0;
// Checking the response if it is 1 or 2 and reporting accordingly
if(response == 1 || response ==2){
yesCount+=1;
System.out.println("YES WAS RECORDED");
}
// Checking if the input is 3 or 4 then printing the required lines
else if (response == 3 || response ==4){
noCount+=1;
System.out.println("NO WAS RECORDED");
}
// if the input is not valid than printing INVALID
else{
System.out.println("INVALID");
}
Answer:
C: Security
Explanation:
Communications and information systems principles need to be, among other things, secure. They need to be able to protect sensitive information from those who intentionally not need to know. Some incident information like voice, networks, and data, are very sensitive and thus, should be secure to the right levels and should comply with privacy laws and data protection.
Answer:
I don't know if this is right output is {1,3}
Explanation:
True.
Data processing involves the conversion of raw data and the flow of data through the Central Processing Unit and Memory to output devices. Each CPU in a computer contains two primary elements: the Arithmetic Logic Unit (ALU) and the control unit. The Arithmetic Logic Unit performs complex mathematical calculations and logical comparisons. On the other hand, the control unit accesses computer instructions, decodes them, and controls the flow of data in and out of the Memory, ALU, primary and secondary storage, and various other output devices.