Answer:
Following is given the detailed solution to each part o question. I hope it will help you a lot!
Explanation:
Answer:
because producer can make their own food
Answer:
A. A1
Explanation:
Worksheet's Columns are named with Alphabets. i.e. A,B,C,D,E....
And Worksheet's rows are named with numbers. i.e. 1,2,3,4,5....
So the intersection of first row number as "1" and First Column name as "A" is A1 as worksheet displays column name first and then row number.
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.