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:
Explanation:
For automobile emission, a uniform standard is preferred, because no unnecessary advantage is given by it to any company that is located in particular states where the regional standards are less severe.
Since pollution has its impact across the states and in the whole of the USA, then there should be uniform standards across all the states. It will also invalidate the impact of regional standards as a factor in the selection of plant locations for the automobile company. It means that a state offering less valid emission standards, will attract more companies to herself and it will be against the other states who care more about the natural environment. It can make more states to opt for the permissive emission standards, that will be more harmful to the USA as a country, than the good. So, a uniform standard is preferred to eliminate it as a factor in plant location decisions.
Yes, uniform standards are beneficial to everyone, because it will bring effective control upon the pollution level because there will be no state where the culprit firm can hide. Besides, it is more effective as efforts done towards environment conservation.
Answer:
See explaination and attachment.
Explanation:
Iteration method is a repetitive method applied until the desired result is achieved.
Let the given equation be f(x) = 0 and the value of x to be determined. By using the Iteration method you can find the roots of the equation. To find the root of the equation first we have to write equation like below
x = pi(x)
Let x=x0 be an initial approximation of the required root α then the first approximation x1 is given by x1 = pi(x0).
Similarly for second, thrid and so on. approximation
x2 = pi(x1)
x3 = pi(x2)
x4 = pi(x3)
xn = pi(xn-1).
please go to attachment for the step by step solution.
Answer:
d) 1 volt
Explanation:
The allowable range is 1 volt. The allowed tolerance (deviation from nominal) depends on what the nominal voltage is.
Answer:
(4.5125 * 10^-3 kg.m^2)ω_A^2
Explanation:
solution:
Moments of inertia:
I = mk^2
Gear A: I_A = (1)(0.030 m)^2 = 0.9*10^-3 kg.m^2
Gear B: I_B = (4)(0.075 m)^2 = 22.5*10^-3 kg.m^2
Gear C: I_C = (9)(0.100 m)^2 = 90*10^-3 kg.m^2
Let r_A be the radius of gear A, r_1 the outer radius of gear B, r_2 the inner radius of gear B, and r_C the radius of gear C.
r_A=50 mm
r_1 =100 mm
r_2 =50 mm
r_C=150 mm
At the contact point between gears A and B,
r_1*ω_b = r_A*ω_A
ω_b = r_A/r_1*ω_A
= 0.5ω_A
At the contact point between gear B and C.
At the contact point between gears A and B,
r_C*ω_C = r_2*ω_B
ω_C = r_2/r_C*ω_B
= 0.1667ω_A
kinetic energy T = 1/2*I_A*ω_A^2+1/2*I_B*ω_B^2+1/2*I_C*ω_C^2
=(4.5125 * 10^-3 kg.m^2)ω_A^2