```python
def volume_of_truncated_cone(height: float, upper_radius: float, lower_radius: float) -> float:
    """
    This function calculates the volume of a truncated cone.

    Arguments:
        height (float): The height of the truncated cone.
        upper_radius (float): The radius of the upper circle.
        lower_radius (float): The radius of the lower circle.

    Returns:
        float: The volume of the truncated cone.
    """
    # Calculate the volume of the truncated cone using the formula.
    pi = 3.14159  # Define the constant pi.
    volume = (1 / 3) * pi * height * (upper_radius ** 2 + upper_radius * lower_radius + lower_radius ** 2)

    return volume
```
```python
def volume_of_truncated_cone(height: float, upper_radius: float, lower_radius: float) -> float:
    """
    This function calculates the volume of a truncated cone.

    Arguments:
        height (float): The height of the truncated cone.
        upper_radius (float): The radius of the upper circle.
        lower_radius (float): The radius of the lower circle.

    Returns:
        float: The volume of the truncated cone.
    """
    # Calculate the volume of the truncated cone using the formula.
    pi = 3.14159  # Define the constant pi.
    volume = (1 / 3) * pi * height * (upper_radius ** 2 + upper_radius * lower_radius + lower_radius ** 2)

    return volume
```