Answer:
#include <bits/stdc++.h>
using namespace std;
bool isPalindrome(string str)
{
char a,b;
int length = str.length();
for (int i = 0; i < length / 2; i++)
{
a=tolower(str[i]);//Converting both first characters to lowercase..
b=tolower(str[length-1-i]);
if (b != a )
return false;
}
return true;
}
int main() {
string t1;
cin>>t1;
if(isPalindrome(t1))
cout<<"The string is Palindrome"<<endl;
else
cout<<"The string is not Palindrome"<<endl;
return 0;
}
Output:-
Enter the string
madam
The string is Palindrome
Enter the string
abba
The string is Palindrome
Enter the string
22
The string is Palindrome
Enter the string
67876
The string is Palindrome
Enter the string
444244
The string is not Palindrome
Explanation:
To ignore the cases of uppercase and lower case i have converted every character to lowercase then checking each character.You can convert to uppercase also that will also work.
A firewall is a programmed software that can be activated through setting. a firewall is designed to protect the computer from viruses and malware etc.
I personally hate it because it is always saying games from game jolt and even steam games are dangerous. hope i helped
Answer:
A is the correct answer.
Explanation:
Perform security awareness training about incident communication.
To accomplish this without using a loop,
we can use math on a string.
Example:
print("apple" * 8)
Output:
appleappleappleappleappleappleappleapple
In this example,
the multiplication by 8 actually creates 8 copies of the string.
So that's the type of logic we want to apply to our problem.
<span>def powersOfTwo(number):
if number >= 0:
return print("*" * 2**number)
else:
<span>return
Hmm I can't make indentations in this box,
so it's doesn't format correctly.
Hopefully you get the idea though.
We're taking the string containing an asterisk and copying it 2^(number) times.
Beyond that you will need to call the function below.
Test it with some different values.
powersOfTwo(4) should print 2^4 asterisks: ****************</span></span>
A data lake is a type of repository that stores large sets of raw data of all types from across an organization.
<h2>What is a data lake?</h2>
A data lake is a central location in which to store all data, regardless of its source or format, for an organization at any scale.
<h3>Characteristics of a data lake</h3>
- It is low cost, easily scalable, and are often used with applied machine learning analytics.
- It allows to import any type of data from multiple sources in its native format, this allows organizations to scale in the size of the data as needed.
Therefore, we can conclude data lakes are a vital component in data management as it stores all data across an organization.
Learn more about data lakes here: brainly.com/question/23182700