Answer:
// header files
#include <iostream>
using namespace std;
// required function
bool isPositive(int num)
{
// check if number is positive
if (num > 0)
{
// return true
return true;
}
// if number is 0 or negative
else
{
// retrun false
return false ;
}
}
// main function
int main() {
// test the function with different values
cout<<isPositive(7)<<endl;
cout<<isPositive(803)<<endl;
cout<<isPositive(141)<<endl;
cout<<isPositive(-22)<<endl;
cout<<isPositive(-57)<<endl;
cout<<isPositive(0)<<endl;
return 0;
}