Answer:
#include <stdio.h>
#include <string.h>
int main(void) {
char simonPattern[50];
char userPattern[50];
int userScore;
int i;
userScore = 0;
scanf("%s", simonPattern);
scanf("%s", userPattern);
for(i = 0;simonPattern[i]!='\0';i++){
if(simonPattern[i]!=userPattern[i]){
userScore=i;
break;
}
}
printf("userScore: %d\n", userScore);
return 0;
}
Explanation:
- Use a for loop that runs until it does not reach the end of simonPattern.
- Check whether the current index of simonPattern and userPattern are not equal and then assign the value of i variable to the userScore variable and break out of the loop.
- Finally display the user score.
Answer:
3) Academic journal articles are always unbiased in their analysis.
Explanation:
The Academic journals are not always unbiased. There can be some authors which may write in some situation and bias the articles. It is important to analyse source and reliability of the article before relying on it. An unbiased author will try to capture picture fairly. The unbiased author presents the facts as it is and does not manipulates the truth.
Answer:
host-based security measures
Explanation:
Anti-virus, host-based firewall, system hardening, change control, and log management are host based.
Answer:
The five eras are general- purpose mainframe and minicomputer computing, personal computers, client/server networks, ...