#K1596. Estimated Range Calculation

    ID: 24472 Type: Default 1000ms 256MiB

Estimated Range Calculation

Estimated Range Calculation

You are given three values representing a car's fuel efficiency, current fuel gauge reading, and fuel tank capacity. Your task is to compute the estimated range the car can travel with the remaining fuel.

The fuel efficiency is given in miles per gallon (mpg), the fuel gauge reading is given as a percentage (0-100%), and the fuel tank capacity is in gallons. The remaining fuel in gallons is calculated by:

\( \text{Remaining Fuel} = \frac{\text{fuel_percentage}}{100} \times \text{tank_capacity} \)

The estimated range is then given by:

\( \text{Estimated Range} = \text{mpg} \times \text{Remaining Fuel} \)

Output the computed value as a float.

inputFormat

The input consists of a single line containing three space-separated floats:

  • mpg – the car's fuel efficiency in miles per gallon.
  • fuel_percentage – the current fuel gauge reading as a percentage (0 to 100).
  • tank_capacity – the fuel tank's capacity in gallons.

outputFormat

Output a single float number representing the estimated range the car can travel. The calculation follows the formula:

\( \text{Estimated Range} = \text{mpg} \times \left(\frac{\text{fuel_percentage}}{100} \times \text{tank_capacity}\right) \)

## sample
25.0 50.0 12.0
150.0