public float GetFuelValues(FuelAmount fuel) { float fuelingValue = 0f; if (fuel.ToString() == FuelAmount.Large.ToString()) { fuelingValue = 55f; } if (fuel.ToString() == FuelAmount.Medium.ToString()) { fuelingValue = 35f; } if (fuel.ToString() == FuelAmount.Small.ToString()) { fuelingValue = 25f; } return(fuelingValue); }
public void DisplayForCheckFuel() { Console.WriteLine($"{Model} {FuelAmount.ToString("0.00")} { DistanceTreveled}km"); }
public void Display() { Console.WriteLine($"{Model} {FuelAmount.ToString("0.00")} { DistanceTreveled}km {FuelConsumptionFor1km}"); }