test case Exercise 1: Consider the following system: A System reads four integer values from a user. The four values are interpreted as representing the lengths of the sides of quadrilateral shape. The system prints a message that states whether the shape is rectangle or square. Function: Description: Test Input Data:

Respuesta :

fichoh

The program displays if the side values of the quadrilateral is a square or rectangle. The required program is written in python 3 thus :

a = int(input('Enter integer input : '))

b = int(input('Enter integer input : '))

c = int(input('Enter integer input : '))

d = int(input('Enter integer input : '))

#the variables a, b, c, d takes prompt values from users which are used to compare if the quadrilateral is a square or rectangle.

if(a == b == c == d):

#using the assignment operator, compare the value of a, b, c and d

print('Shape is square')

#if the values are the same, the shape is a square

else :

print('Shape is Rectangle')

#otherwise, the shape is a rectangle

The sample run of the program is attached below.

Learn more : https://brainly.com/question/18405415

Ver imagen fichoh