Question: Create the Python program as described below and save in a file named bool.py . You should use IDLE to create your program. Your assignment

Create the Python program as described below and save in a file named bool.py . You should use IDLE to create your program.
Your assignment is to first develop a conceptual model and document it using either pseudo code or a flowchart to meet the requirements of the program described as follows.
For your assignment you must write a compare function that returns 1 if a > b , 0 if a == b , and -1 if a < b . The user must be prompted for the values of a and b. The compare function must have arguments for a and b.
To demonstrate your compare function, you must call the compare function three times, once for each condition, from within your program and display (using print statement) the return code of the function.
Use the following table for values of a and b to use when calling your compare function from within your program:
Dont forget to use comments and make your program readable.
a b
5 2
2 5
3 3

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!