Answer:
The statement can be written as
int result = cube(4);
Explanation:
A function is a block of reusable codes to perform some tasks. For example, the function in the question is to calculate the cube of a number.
A function can also operate on one or more input value (argument) and return a result. The <em>cube </em>function in the question accept one input value through its parameter <em>number </em>and the <em>number</em> will be multiplied by itself twice and return the result.
To call a function, just simply write the function name followed with parenthesis (e.g. <em>cube()</em>). Within the parenthesis, we can include zero or one or more than one values as argument(s) (e.g. <em>cube(4)</em>).
We can then use the "=" operator to assign the return output of the function to a variable (e.g. <em>int result = cube(4)</em>)
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:
robotic technology
Explanation:
Innovation is nothing but the use of various things such as ideas, products, people to build up a solution for the benefit of the human. It can be any product or any solution which is new and can solve people's problems.
Innovation solution makes use of technology to provide and dispatch new solutions or services which is a combination of both technology and ideas.
One such example of an innovative solution we can see is the use of "Robots" in medical science or in any military operations or rescue operation.
Sometimes it is difficult for humans to do everything or go to everywhere. Thus scientist and engineers have developed many advance robots or machines using new ideas and technology to find solutions to these problems.
Using innovations and technologies, one can find solutions to many problems which is difficult for the peoples. Robots can be used in any surveillance operation or in places of radioactive surrounding where there is a danger of humans to get exposed to such threats. They are also used in medical sciences to operate and support the patient.
Answer:
The fluid level difference in the manometer arm = 22.56 ft.
Explanation:
Assumption: The fluid in the manometer is incompressible, that is, its density is constant.
The fluid level difference between the two arms of the manometer gives the gage pressure of the air in the tank.
And P(gage) = ρgh
ρ = density of the manometer fluid = 60 lbm/ft³
g = acceleration due to gravity = 32.2 ft/s²
ρg = 60 × 32.2 = 1932 lbm/ft²s²
ρg = 1932 lbm/ft²s² × 1lbf.s²/32.2lbm.ft = 60 lbf/ft³
h = fluid level difference between the two arms of the manometer = ?
P(gage) = 9.4 psig = 9.4 × 144 = 1353.6 lbf/ft²
1353.6 = ρg × h = 60 lbf/ft³ × h
h = 1353.6/60 = 22.56 ft
A diagrammatic representation of this setup is presented in the attached image.
Hope this helps!
Answer:
Combination circuit; The basic strategy for the analysis of combination circuits involves using the meaning of equivalent resistance for parallel branches to transform the combination circuit into a series circuit.
Example:
The use of both series and parallel connections within the same circuit. In this case, light bulbs A and B are connected by parallel connections and light bulbs C and D are connected by series connections. This is an example of a combination circuit.