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;
}
<u>the liquid limit</u>
LL=-0.8078x*49.503
LL=-0.8078(25)+49.503
LL=29.308
<u>plasticity index of the soil</u>
PL=217.2%+17.8%/2
PL=17.5
PI=LL-PL
PI=29.308-17.5
PL=11.808
Hope this helps, now you know the answer and how to do it. HAVE A BLESSED AND WONDERFUL DAY! As well as a great rest of Black History Month! :-)
- Cutiepatutie ☺❀❤
Answer:
1. Curiosity
2. Critical Thinking
3. Creativity
4. Effective Communication
5. A Collaborative Spirit
Definition of Engineer:
Professionals who invent, design, analyze, build and test machines, complex systems, structures, gadgets and materials to fulfill functional objectives and requirements while considering the limitations imposed by practicality, regulation, safety and cost.
Answer:
Explanation:
One approach to this would be to create the function with two parameters. One would be the element to be added or deleted while the other would be a char variable that would indicate the process to be completed (adding or deleting). This char can have a value of '+' or '-' accordingly. Then within the function, we would use an IF/Else statement to detect whether the char variable had a value of '+' or '-'. If the value was '+' we would execute the insertion process of the code but if the value was '-' we would only execute the deletion process of the code. Therefore, allowing both processes to be available within a single function.