Answer:
Kindly follow the steps as shown below.
Explanation:
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:
The solution and complete explanation for the above question and mentioned conditions is given below in the attached document.i hope my explanation will help you in understanding this particular question.
Explanation:
Answer:
a) -8 lb / ft^3
b) -70.4 lb / ft^3
c) 54.4 lb / ft^3
Explanation:
Given:
- Diameter of pipe D = 12 in
- Shear stress t = 2.0 lb/ft^2
- y = 62.4 lb / ft^3
Find pressure gradient dP / dx when:
a) x is in horizontal flow direction
b) Vertical flow up
c) vertical flow down
Solution:
- dP / dx as function of shear stress and radial distance r:
(dP - y*L*sin(Q))/ L = 2*t / r
dP / L - y*sin(Q) = 2*t / r
Where dP / L = - dP/dx,
dP / dx = -2*t / r - y*sin(Q)
Where r = D /2 ,
dP / dx = -4*t / D - y*sin(Q)
a) Horizontal Pipe Q = 0
Hence, dP / dx = -4*2 / 1 - 62.4*sin(0)
dP / dx = -8 + 0
dP/dx = -8 lb / ft^3
b) Vertical pipe flow up Q = pi/2
Hence, dP / dx = -4*2 / 1 - 62.4*sin(pi/2)
dP / dx = 8 - 62.4
dP/dx = -70.4 lb / ft^3
c) Vertical flow down Q = -pi/2
Hence, dP / dx = -4*2 / 1 - 62.4*sin(-pi/2)
dP / dx = -8 + 62.4
dP/dx = 54.4 lb / ft^3
Technician b says that hydrogen has better specific energy than fossil fuels. so technician b is correct.
<h3>
Does hydrogen have the highest specific energy?</h3>
- Although hydrogen has the highest energy density per mass of any fuel, it has the lowest energy density per unit volume due to its low ambient temperature density, necessitating the development of new storage technologies with the potential for higher energy density.
- Hydrogen is utilized as a rocket fuel and in fuel cells to generate power on some spacecraft because it is beneficial as an energy source or fuel due to its high energy content per unit of weight.
- Since hydrogen has a significantly higher energy content than fossil fuels, less of it is required to carry out any given task.
To learn more about energy refer to:
brainly.com/question/25959744
#SPJ4