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
SCORPION-xisa [38]
3 years ago
9

Write a program that uses the function isPalindrome given in Example 6-6 (Palindrome). Test your program on the following string

s:
madam, abba, 22, 67876, 444244, trymeuemyrt

Modify the function isPalindrome of Example 6-6 so that when determining whether a string is a palindrome, cases are ignored, that is, uppercase and lowercase letters are considered the same.

The isPalindrome function from Example 6-6 has been included below for your convenience.

bool isPalindrome(string str)
{
int length = str.length();
for (int i = 0; i < length / 2; i++) {
if (str[i] != str[length – 1 – i]) {
return false;
} // if
} // for loop
return true;
}// isPalindrome

Your program should print a message indicating if a string is a palindrome:

madam is a palindrome
Computers and Technology
1 answer:
WITCHER [35]3 years ago
3 0

Answer:

Explanation:

bool isPalindrome(string str)

{

   int length = str.length();

   for (int i = 0; i < length / 2; i++) {

      if (str [i] != str [length – 1 – i]) {

         return false;

         }

    }

cout << str << "is a palindrome";

return true;

}

You might be interested in
What the heck is happening what is this?
Brilliant_brown [7]
Just decrease the font size and the size of the like will decrease.

Decrease font size by pressing on the part were it says 29 and typing in a smaller number like 14 for example
4 0
3 years ago
Email addresses or domains ______________ are automatically marked as spam. A. on a blacklist B. on a whitelist C. in an address
meriva

The email addresses or domains on a blacklist are automatically marked as spam in the inbox.

<h3>What is an email address?</h3>

A virtual address, which is unique in case of each individual and cannot be replicated for the purpose of sending and receiving mails and attachments, is known as an email address.

Hence, option A holds true regarding an email address.

Learn more about an email address here:

brainly.com/question/14714969

#SPJ1

4 0
2 years ago
Why hasn't 3D printing been more publicly used?
marshall27 [118]

Answer:

Probably because it's really expensive and not well known.

Explanation:

Some metals and plastic are not able to be altered for 3D printing, which makes this harder for some people to get hold of. Most of the materials are also not able to be recycled, which makes it harder.

3 0
2 years ago
What are the Strategies to Maintain a Healthy Sales Funnel?
il63 [147K]

Answer:

  • Use LinkedIn Automation Tools to Level Up Your Prospecting Game
  • Know Your Target Audience
  • Sync With Prospects' Interests
  • Polish Your LinkedIn Profile

Creating and maintaining a healthy sales pipeline is challenging but not impossible.  

The B2B world has changed, and you need to adopt new strategies to build a healthy pipeline. Choose the best LinkedIn automation tool, optimize your profile, know your audience and share personalized content for quick outcomes.

7 0
3 years ago
I wake up the computer and remind it what to do ​
kirza4 [7]

Answer:

what's the question or answer you want or is it a joke?

Explanation:

6 0
2 years ago
Other questions:
  • Two electronics technicians are looking at the representations of a silver atom and a copper atom in the figure above. Technicia
    10·1 answer
  • During World War II, the Battle of the Coral Sea was significant because it evened the naval strength of the Japanese and US fle
    6·1 answer
  • What are the arguments for writing efficient programs even though hardware is relatively inexpensive?
    10·1 answer
  • PreparedStatement ps = connection.prepareStatement("select firstName, mi, lastName from Student where lastName = ?"; ps.setStrin
    5·1 answer
  • Question 4 (Multiple Choice Worth 5 points)
    6·1 answer
  • The Counter Pattern
    14·1 answer
  • How do you customize calendar view​
    9·2 answers
  • How did the ENIAC change computing?<br> how did the eniac change computing
    14·1 answer
  • Read-only memory chips are used to
    11·1 answer
  • What are the basic data types supported in C programing language?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!