Question: Using python 3, I need to write a program that asks the user to enter a number, and then checks different properties of the number

Using python 3, I need to write a program that asks the user to enter a number, and then checks different properties of the number using functions.

The program must contain a main(), as well as the following 3 functions: checkOddOrEven() o Task: check if number is odd or even o Input: userNum, an integer o Output: None (prints out results to the screen) checkPositive() o Task: check if number is negative, positive, or zero o Input: userNum, an integer o Output: None (prints out results to the screen) checkDivisble() o Task: check if the given number is divisible by a second number o Input: userNum, an integer The second number should be asked for within the function itself, and is not passed in as a second formal parameter. o Output: None (prints out results to the screen) Within main(), the user is asked for a number, and then each of the three functions above are called, in the order they are shown.

The out put need to look like this,

Enter the number you would like to check: 18

18 is even

18 is positive

Enter number to divide by: 2

18 is divisible by 2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!