/**
 * This function takes the flight time, fuel consumption rate, and fuel capacity as input and
 * returns the remaining fuel after the given flight time in gallons.
 */
fun calculateFuelBurnRate(flightTime: Double, fuelConsumptionRate: Double, fuelCapacity: Double): Double? {

    val totalFuelBurned = flightTime * fuelConsumptionRate

    return if (totalFuelBurned > fuelCapacity) {
        println("Insufficient fuel capacity.")
        null
    } else {
        val remainingFuel = fuelCapacity - totalFuelBurned
        remainingFuel
    }
}
/**
 * This function takes the flight time, fuel consumption rate, and fuel capacity as input and
 * returns the remaining fuel after the given flight time in gallons.
 */
fun calculateFuelBurnRate(flightTime: Double, fuelConsumptionRate: Double, fuelCapacity: Double): Double? {
/**
 * This function takes the flight time, fuel consumption rate, and fuel capacity as input and
 * returns the remaining fuel after the given flight time in gallons.
 */
fun calculateFuelBurnRate(flightTime: Double, fuelConsumptionRate: Double, fuelCapacity: Double): Double? {

    val totalFuelBurned = flightTime * fuelConsumptionRate

    return if (totalFuelBurned > fuelCapacity) {
        println("Insufficient fuel capacity.")
        null
    } else {
        val remainingFuel = fuelCapacity - totalFuelBurned
        remainingFuel
    }
}