ShootMe / FuelCalculator

Programming challenge to calculate least amount of fuel needed using discrete stopping points

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FuelCalculator

Calculates the least amount of fuel needed at a starting point to reach a destination point using discrete stopping points

Usage

  • FuelCalculator.exe [FuelCapacity] [DistanceToTravel]
  • Example: FuelCalculator.exe 500 800
  • Outputs: (Distance To Travel = 800) (Stops = 34, 134, 300, 800) (Fuel Needed = 1736)

About

Programming challenge to calculate least amount of fuel needed using discrete stopping points

License:MIT License


Languages

Language:C# 100.0%