Ask Question
8 February, 15:18

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. 8 February, 15:47
    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 you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers