Answer:
See explaination
Explanation:
#include <iostream>
#include<string.h>
using namespace std;
bool isPalindrome(string str, int lower, int upper){
if(str.length() == 0 || lower>=upper){
return true;
}
else{
if(str.at(lower) == str.at(upper)){
return isPalindrome(str,lower+1,upper-1);
}
else{
return false;
}
}
}
int main(){
string input;
cout<<"Enter string: ";
cin>>input;
if(isPalindrome(input,0,input.length()-1)){
cout<<input<<" is a palindrome"<<endl;
}
else{
cout<<input<<" is NOT a palindrome"<<endl;
}
return 0;
}
Answer:
resistance = 2.52 ohms
Explanation:
from the formula
V =IR
Voltage = (current)(resistance)
Resistance =
R=
R= 2.52 ohms
Answer:
The flexural strength of a specimen is = 78.3 M pa
Explanation:
Given data
Height = depth = 5 mm
Width = 10 mm
Length L = 45 mm
Load = 290 N
The flexural strength of a specimen is given by


78.3 M pa
Therefore the flexural strength of a specimen is = 78.3 M pa