An algorithm is the set of logical steps that a computer uses to "read" instructions.
Algorithms are used when you write computer programs.
Mr. Pacey
Technology Specialist
Answer:
LinkedIn is very safe
Explanation:
LinkedIn is very safe, that being said you should never post private information about yourself anywhere that you do not want others to see/know. LinkedIn is a job recruiting and networking site, meaning that all the information that you have or will be publishing there should be related to your career. There is no reason for you to publish private information such as document numbers, social security number, address, bank account info, etc.
Answer:
Following are the program in the Java Programming Language.
//define function
public static boolean checkPalindrome(String str){
//set integer variable to 0
int a = 0;
//set integer variable to store the length of the string
int n = str.length() - 1;
//set the while loop to check the variable a is less than the variable n
while(a<n)
{
//check the string character is not in the variable n
if(str.charAt(a)!= str.charAt(n))
//then, return false
return false;
//the variable a is incremented by 1
a++;
//the variable n is decremented by 1
n--;
}
//and return true
return true;
}
Explanation:
<u>Following are the description of the following function</u>.
- Firstly, we define boolean type public function that is 'checkPalindrome' and pass string data type argument 'str' in its parameter.
- Set two integer data type variables that are 'a' initialize to 0 and 'n' which store the length of the string variable 'str' decremented by 1.
- Set the While loop that checks the variable 'a' is less than the variable 'n', then we set the If conditional statement to check that the string character is not in the variable n then, return false.
- Otherwise, it returns true.
Answer:
I believe it is just a task. Since there exists(on windows) the Task Manager application, where you can stop any running <em>task, </em>I think that they are called tasks
Explanation:
Answer: in C
#include <stdio.h>
int main(){
int num1, num2;
printf("Enter first number :: ");
scanf("%d", &num1);
printf("Enter second number :: ");
scanf("%d", &num2);
if(num1 > num2){
printf("%d is larger than %d\n", num1, num2);
} else if (num2 > num1) {
printf("%d is larger than %d\n", num2, num1);
} else{
printf("Both of them are equal\n");
}
return 0;
}