\bold{Answer:}
Instructions written in code that a computer follows are called software programs.
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.
Answer:
The VI in LabView indicates c-Virtual Instrument
Explanation:
The VI in LabView is a program-subroutine. The VI stands for Virtual Instrument. The VI is composed of a Block diagram, Connector panel and a Front Panel.
Answer:
import re
with open("../../Downloads/Tweets.txt","r", encoding="utf-8") as tweets:
myfile = tweets.readlines()
for item in myfile:
item = item.rstrip()
mylist = re.findall("^RT (.*) ", item)
if len(mylist) !=0:
for line in mylist:
if line.count("#") >=1:
ln = line.split("#")
dm = ln[1]
print(f"#{dm}")
Explanation:
The python source code filters the document file "Tweets" to return all tweets with a hashtag flag, discarding the rest.
The retina is the part pf the eye that is similar to the film of a camera. It is a thin layer of cells that is located at the back of the eyeball. This part contains photoreceptor cells which respond to light where the neural signals received undergoes complex processing by other neurons in the retina.