Ask Question
26 December, 09:08

Define a function called isSenior that takes a parameter containing an integer value and returns True if the parameter is greater than or equal to 65, and False otherwise.

+3
Answers (1)
  1. 26 December, 09:26
    0
    So if the parameter 's value is 7 or 803 or 141 the function returns true. But if the parameter 's value is - 22 or - 57, or 0, the function returns false.

    My Code:

    bool is Positive (int x) {

    if (x > 0)

    {

    return true;

    }

    else {

    return false;

    }

    }
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Define a function called isSenior that takes a parameter containing an integer value and returns True if the parameter is greater than or ...” in 📗 Mathematics if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers