Exercise Sheet 4: House Configurator

A configurable house. Parameters control the shape of the house.

  • methods with parameters
  • geometrical calculations with coordinates
  • intercept theorem

Exercise Sheet 4

Based on

  • exercise sheet 3

 

A house is drawn, where the shape is controlled by six parameters. At first, the houses consist of only one attic. Additional floors are then inserted depending on h1.

Interactive graphics. The parameters of the house can be changed at runtime using sliders.