ParcheKo / med-el-test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exercise

The task is to create an assembly to encapsulate different vehicles from a client application. For that purpose, you negotiated with the customer that there needs to be a method void Move()which outputs on the debug line which vehicle you currently move, for example:

  • toyota.Move(); “You are driving a car from Toyota.”
  • honda.Move(); “You are driving a motorcycle from Honda.”

The customer further requested that the framework supports the following vehicles:

  • Motorcycles fabricated by Honda
  • Motorcycles fabricated by KTM.
  • Cars fabricated by Toyota
  • Cars fabricated by Honda

Finally, the customer requests to be able to switch the tires of cars, and also show which tires (including its properties) a car uses by calling the Move()method. Summer tires are characterized by Pressure and MaximumTemperature, whereas winter tires are characterized by Pressure, MinimumTemperature and Thickness (assume all values are floats). Cars should come per default with summer tires, where pressure is set to 2.5bar, and the maximum temperature to 50°C.

Implement the functionality by applying object-oriented principles in C#

About


Languages

Language:C# 96.1%Language:Dockerfile 3.9%