public Car( string _brand, string _model, Colors _color, FuelTypes _fuel, uint _max_speed, double _horsepowers, double _motor_capacity, Motor_brand _motor_brand) : base(_brand, _model, _color, _fuel, _max_speed, _horsepowers, _motor_capacity) { this.motor_brand = _motor_brand; }
public static double get_coefficiente(Motor_brand brand) { double result = 1; switch (brand) { case Motor_brand.ABB: { result = 1.11; break; } case Motor_brand.ARK: { result = 1.21; break; } case Motor_brand.AMETEK: { result = 1.33; break; } case Motor_brand.Asmo: { result = 1.48; break; } case Motor_brand.Danaher: { result = 1.53; break; } case Motor_brand.Emerson: { result = 1.612; break; } case Motor_brand.Nidec: { result = 1.82; break; } } return(result); }