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:
la escuela,en casa y listo...............
Answer:
y ≈ 2.5
Explanation:
Given data:
bottom width is 3 m
side slope is 1:2
discharge is 10 m^3/s
slope is 0.004
manning roughness coefficient is 0.015
manning equation is written as

where R is hydraulic radius
S = bed slope



P is perimeter 

![Q = (2+2y) y) \times 1/0.015 [\frac{(3+2y) y}{(3+2\sqrt{5} y)}]^{2/3} 0.004^{1/2}](https://tex.z-dn.net/?f=Q%20%3D%20%282%2B2y%29%20y%29%20%5Ctimes%201%2F0.015%20%5B%5Cfrac%7B%283%2B2y%29%20y%7D%7B%283%2B2%5Csqrt%7B5%7D%20y%29%7D%5D%5E%7B2%2F3%7D%200.004%5E%7B1%2F2%7D)
solving for y![100 =(2+2y) y) \times (1/0.015) [\frac{(3+2y) y}{(3+2\sqrt{5} y)}]^{2/3} \times 0.004^{1/2}](https://tex.z-dn.net/?f=100%20%3D%282%2B2y%29%20y%29%20%5Ctimes%20%281%2F0.015%29%20%5B%5Cfrac%7B%283%2B2y%29%20y%7D%7B%283%2B2%5Csqrt%7B5%7D%20y%29%7D%5D%5E%7B2%2F3%7D%20%5Ctimes%200.004%5E%7B1%2F2%7D)
solving for y value by using iteration method ,we get
y ≈ 2.5
Disability is extremely diverse. While some health conditions associated with disability result in poor health and extensive health care needs, others do not. However, all people with disability have the same general health care needs as everyone else, and therefore need access to mainstream health care services.