Answer:
#include <iostream>
#include <array>
using namespace std;
bool isPalindrome(string str)
{
int length = str.length();
for (int i = 0; i < length / 2; i++)
if (toupper(str[i]) != toupper(str[length - 1 - i]))
return false;
return true;
}
int main()
{
array<string, 6> tests = { "madam", "abba", "22", "67876", "444244", "trymEuemYRT" };
for (auto test : tests) {
cout << test << " is " << (isPalindrome(test) ? "" : "NOT ") << "a palindrome.\n";
}
}
Explanation:
The toupper() addition forces characters to uppercase, thereby making the comparison case insensitive.
Not really, because Java is an OOP programming language and JavaScript is an OOP scripting language.
Hope I helped!
~Mshcmindy
The answer is a
digital dashboard.
In its simplest form, a digital dashboard or a business dashboard
provides a graphical representation of KPIs, measures and metrics used by a
company to monitor performance of departments, individuals, teams or the entire company. They track the progress of business objectives and make effective
data driven decisions.
American writer of children's books best known for young adult literature
tessa the same with me I hate it and then I'll click I and then it's blank