Skip to content

Repository for Lab 4 of the class Introduction to Software Programming, MSc Geoinformatics and Spatial Data Science @ WWU Münster, WiSe 21/22

Notifications You must be signed in to change notification settings

merelvogel/softprog_lab4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Software programming lab 4

Repository for Lab 4 of the class Introduction to Software Programming, MSc Geoinformatics and Spatial Data Science @ WWU Münster, WiSe 21/22.

Files

  • Circle.py creates a class object for circles. Circle objects contain a centerpoint and a radius. Various functions (getters, setters, area etc.) are defined.
  • Point.py creates a class object for points. Point objects contain an x- and y-coordinate. Various functions (getters, setters, area etc.) are defined.
  • Rectangle.py creates a class object for rectangles. Point objects contain a top left point, width and height. Various functions (getters, setters, area etc.) are defined.
  • Shape.py creates an object superclass for circles, points and rectangle objects. Shape objects contain stroke width and color, as well as a filling color. Various functions to set and get these attributes are defined.
  • Lab4Ex1.py is a testing code, which verifies the validity of the python scripts in the aforementioned class files. The program returns 'OK' if everything works properly, and returns 'FAILED' if not.

About

Repository for Lab 4 of the class Introduction to Software Programming, MSc Geoinformatics and Spatial Data Science @ WWU Münster, WiSe 21/22

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages