Answer:
#include <iostream>
#include <string>
using namespace std;
bool isPalindrome(string str)
{
int length = str.length();
for (int i = 0; i < length / 2; i++)
{
if (tolower(str[i]) != tolower(str[length - 1 - i]))
return false;
}
return true;
}
int main()
{
string s[6] = {"madam", "abba", "22", "67876", "444244", "trymeuemyrt"};
int i;
for(i=0; i<6; i++)
{
//Testing function
if(isPalindrome(s[i]))
{
cout << "\n " << s[i] << " is a palindrome... \n";
}
else
{
cout << "\n " << s[i] << " is not a palindrome... \n";
}
}
return 0;
}
Answer:
M =2.33 kg
Explanation:
given data:
mass of piston - 2kg
diameter of piston is 10 cm
height of water 30 cm
atmospheric pressure 101 kPa
water temperature = 50°C
Density of water at 50 degree celcius is 988kg/m^3
volume of cylinder is 


mass of available in the given container is



M =2.33 kg
Answer:
Q=36444.11 Btu
Explanation:
Given that
Initial temperature = 60° F
Final temperature = 110° F
Specific heat of water = 0.999 Btu/lbm.R
Volume of water = 90 gallon
Mass = Volume x density

Mass ,m= 90 x 0.13 x 62.36 lbm
m=729.62 lbm
We know that sensible heat given as
Q= m Cp ΔT
Now by putting the values
Q= 729.62 x 0.999 x (110-60) Btu
Q=36444.11 Btu
Answer: OHMMETER & MEGOHMMETER:
Explanation: The ohmmeter measures circuit resistance; the megohmmeter measures the high resistance of insulation. A meter used to measure electric current. It is connected as part of a circuit.
Answer:
ambages. pitiless or without compassion; cruel; merciless. winding, roundabout paths or ways.
Explanation: