1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
zzz [600]
4 years ago
15

Write a function checkPalindrome that accepts a single argument, a string. The function should return true (Boolean) if the stri

ng is a palindrome, false if it is not. Make sure your function will give the correct answer for words with capital letters.
Computers and Technology
1 answer:
Vsevolod [243]4 years ago
5 0

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.
You might be interested in
Match the description to the step in troubleshooting.
Digiron [165]
It should go 4 5 3 2 1
5 0
4 years ago
Your organization's security policy specifies that any mobile device (regardless of ownership) that connects to your internal ne
Veseljchak [2.6K]

Answer:

Create an microsoft intune for remote management of the device

Explanation:

Microsoft intune is a server based management that grants an authorized user or group limited access to information in its database.

Setting up a intune in new acquired devices (it is called bulk enroll) is as easy as connecting a usb to the device and clicking install on the administrator PC. While already existing devices would have to create an account as individual users.

3 0
3 years ago
In the context of customer relationship management (CRM) applications, which approach is often chosen by organizations with an e
Bad White [126]

The on-premise approach is often chosen by organizations with an established IT infrastructure.

<h3>What is the On Premises?</h3>

In an on-premises method, resources are said to be given or deployed in-house and it is one that is found within an enterprise's IT infrastructure.

Customer relationship management (CRM) is known to be a form of a technology that is often used in the act of managing all of a firm's  relationships and communications with customers and also that of potential customers.

Therefore, The on-premise approach is often chosen by organizations with an established IT infrastructure.

Learn more about CRM from

brainly.com/question/27373018

#SPJ1

5 0
2 years ago
What refers to the way that a user gets data from a computer, such as
Vera_Pavlovna [14]

Answer:

Possibly IOT or internet of things. Not 100% sure if I am understanding question fully

Explanation:

4 0
3 years ago
These steps describe the procedure to delete files from your computer.
bearhunter [10]
1 Select the file to be deleted
2 select delete from the file menu
3 click on the recyclebin
4 click on the delete icon
6 0
3 years ago
Read 2 more answers
Other questions:
  • A bit shift is a procedure whereby the bits in a bit string are moved to the left or to the right. For example, we can shift the
    12·1 answer
  • What is the Difference between raw_input and input?
    6·1 answer
  • Which task can be completed using the Export File menu?
    5·1 answer
  • Movie that has a knife and shower​
    14·1 answer
  • With which game is the Taito Corporation associated?
    9·1 answer
  • Green Field county stadium is planning to conduct a cricket match between two teams A and B. A large crowd is expected in the st
    6·1 answer
  • Which statement is LEAST accurate? Select one: a. A common reason for ERP failure is that the ERP does not support one or more i
    14·1 answer
  • How are XY coordinates utilized in construct ?
    15·1 answer
  • Function of Ribbon in Access 2010​
    7·1 answer
  • Tristan just downloaded a new game he wants to play on his computer. What kind of file should he open in order to install and ru
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!