Menu

[Solved]Functions Instructions Assignment Using Functions Ask User Input Numbers User Enter 4 Numb Q37089802

In PYTHON:

Functions Instructions For this assignment you will be using functions. You will ask the user to input some numbers. The user

Functions Instructions For this assignment you will be using functions. You will ask the user to input some numbers. The user can enter 4 numbers. You will then return if the numbers of it forms a rectangle or a square (and if so, what is the perimeter). Remember you must use functions. Sample Run: Example 1: Enter the next number (enter-1 when finished) > 5 Enter the next number (enter -1 when finished) > 3 Enter the next number (enter -1 when finished) Enter the next number (enter -1 when finished) > 5 Enter the next number (enter-1 when finished) Forms a rectangle with perimeter of 16 Example 2: Enter the next number (enter -1 when finished) Enter the next number (enter-1 when finished) > 5 Enter the next number (enter-1 when finished) > 5 Enter the next number (enter -1 when finished) > 5 Enter the next number (enter-1 when finished) -1 Forms a square with perimeter of 20 Show transcribed image text Functions Instructions For this assignment you will be using functions. You will ask the user to input some numbers. The user can enter 4 numbers. You will then return if the numbers of it forms a rectangle or a square (and if so, what is the perimeter). Remember you must use functions. Sample Run: Example 1: Enter the next number (enter-1 when finished) > 5 Enter the next number (enter -1 when finished) > 3 Enter the next number (enter -1 when finished) Enter the next number (enter -1 when finished) > 5 Enter the next number (enter-1 when finished) Forms a rectangle with perimeter of 16 Example 2: Enter the next number (enter -1 when finished) Enter the next number (enter-1 when finished) > 5 Enter the next number (enter-1 when finished) > 5 Enter the next number (enter -1 when finished) > 5 Enter the next number (enter-1 when finished) -1 Forms a square with perimeter of 20

Expert Answer


Answer to Functions Instructions For this assignment you will be using functions. You will ask the user to input some numbers. The… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *