Write the definition of a function isSenior, that receives an integer parameter and returns true if the parameter's value is greater or equal to 65, and false otherwise. So, if the parameter's value is 7 or 64 or 12 the function returns false. But if the parameter's value is 69 or 83 or 65 the function returns true.
.
.
Click on the title for the solution
.
.
bool isSenior (int x)
{if (x>65) return true;
else return false;}
.
Click on the title for the solution
.
.
This is the answer:
:
bool isSenior (int x)
{if (x>65) return true;
else return false;}
Comments
Post a Comment