Using the definitions
class Point:
"""attributes: x, y"""
class Rectangle:
"""attributes: width, height, corner"""
write a function
find_center(r)
that returns a point containing the coordinates of the center of a rectangle . For example, the center of a rectangle of width , height , and lower-left corner , is the point .
The input consists of several rectangles (four non-negative integer numbers: the width, the height, and the coordinates of the lower-left corner).
For each rectangle, print the coordinates of the center (two non-negative real numbers).
Input
100 200 0 0 100 200 50 100 100 200 100 200
Output
50.0 100.0 100.0 200.0 150.0 300.0