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:
thats really hard how could you answerthis hhhhhhh
Answer:
a) 
b) attached below
c) type zero system
d) k > 
e) The gain K increases above % error as the steady state speed increases
Explanation:
Given data:
Motor voltage = 12 v
steady state speed = 200 rad/s
time taken to reach 63.2% = 1.2 seconds
<u>a) The transfer function of the motor from voltage to speed</u>
let ;
be the transfer function of a motor
when i/p = 12v then steady state speed ( k1 ) = 200 rad/s , St ( time constant ) = 1.2 sec
hence the transfer function of the motor from voltage to speed
= 
<u>b) draw the block diagram of the system with plant controller and the feedback path </u>
attached below is the remaining part of the detailed solution
c) The system is a type-zero system because the pole at the origin is zero
d) ) k > 