Answer:
The following program is in C++.
#include <bits/stdc++.h>
using namespace std;
void lastChars(string s)
{
int l=s.length();
if(l!=0)
{
cout<<"The last character of the string is: "<<s[l-1];
}
}
int main() {
string s;//declaring a string..
getline(cin,s);//taking input of the string..
lastChars(s);//calling the function..
return 0;
}
Input:-
Alex is going home
Output:-
The last character of the string is: e
Explanation:
In the function lastChars() there is one argument that is a string.I have declared a integer variable l that stores the length of the string.If the length of the string is not 0.Then printing the last character of the string.In the main function I have called the function lastChars() with the string s that is prompted from the user.
Answer:
26 feet and longer boats that have garbage dumping placard must be prominently posted and the boats which are 40 feet and longer must have the written waste management plan.
Explanation:
D the answer is D and anyone can answer this Question
Answer:
0.163 MW
Explanation:
To get the minimum rate of energy rehection by heat transfer to cold reservoir, it implies that the power cycle operates in reversible cycle. The efficiency of reversible cycle whose value will be same as efficiency of power cycle will be given by
Efficiency of reversible cycle
n= (Th-Tc)/Th where T represent temperature, n efficiency, subscripts h and c hot and cold respectively
Substituting 500 and 310 for hot and cold temperatures respectively then efficiency
n=(500-310)/500=0.38
Efficiency of power cycle, n= Power output/Qh
Qh= 0.1/0.38= 0.263
Net power output, W= Qh- Qc
Qc=Qh-W= 0.263-0.1=0.163 MW
Answer:44.61 KJ
Explanation:
Let h_1,V_1,Z_1 be the initial specific enthalpy,velocity&elevation of the system
and h_2,V_2,Z_2 be the Final specific enthalpy,velocity&elevation of the system
mass(m)=7kg
Applying Steady Flow Energy Equation
+Q=+W
substituting values
= +W
W=+Q
W=+
W=44.61KJ