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:
41.5° C
Explanation:
Given data :
1025 steel
Temperature = 4°C
allowed joint space = 5.4 mm
length of rails = 11.9 m
<u>Determine the highest possible temperature </u>
coefficient of thermal expansion ( ∝ ) = 12.1 * 10^-6 /°C
Applying thermal strain ( Δl / l ) = ∝ * ΔT
( 5.4 * 10^-3 / 11.9 ) = 12.1 * 10^-6 * ( T2 - 4 )
∴ ( T2 - 4 ) = ( 5.4 * 10^-3 / 11.9 ) / 12.1 * 10^-6
hence : T2 = 41.5°C