/**
 * Calculate the drag coefficient for a given altitude and velocity.
 *
 * @param altitude The altitude in kilometers.
 * @param velocity The velocity in meters per second.
 * @return The calculated drag coefficient.
 */
fun calculateDragCoefficient(altitude: Float, velocity: Float): Float {

    // Initialize the drag coefficient
    var dragCoefficient = 0f
    
    // Find the drag coefficient based on altitude and velocity
    if (altitude > 50 && velocity > 1000) {
        dragCoefficient = 0.6f
    } else if (altitude > 40 && velocity > 800) {
        dragCoefficient = 0.5f
    } else if (altitude > 30 && velocity > 600) {
        dragCoefficient = 0.4f
    } else if (altitude > 20 && velocity > 400) {
        dragCoefficient = 0.3f
    } else if (altitude > 10 && velocity > 200) {
        dragCoefficient = 0.2f
    }
    
    return dragCoefficient
}
/**
 * Calculate the drag coefficient for a given altitude and velocity.
 *
 * @param altitude The altitude in kilometers.
 * @param velocity The velocity in meters per second.
 * @return The calculated drag coefficient.
 */
fun calculateDragCoefficient(altitude: Float, velocity: Float): Float {
/**
 * Calculate the drag coefficient for a given altitude and velocity.
 *
 * @param altitude The altitude in kilometers.
 * @param velocity The velocity in meters per second.
 * @return The calculated drag coefficient.
 */
fun calculateDragCoefficient(altitude: Float, velocity: Float): Float {

    // Initialize the drag coefficient
    var dragCoefficient = 0f
    
    // Find the drag coefficient based on altitude and velocity
    if (altitude > 50 && velocity > 1000) {
        dragCoefficient = 0.6f
    } else if (altitude > 40 && velocity > 800) {
        dragCoefficient = 0.5f
    } else if (altitude > 30 && velocity > 600) {
        dragCoefficient = 0.4f
    } else if (altitude > 20 && velocity > 400) {
        dragCoefficient = 0.3f
    } else if (altitude > 10 && velocity > 200) {
        dragCoefficient = 0.2f
    }
    
    return dragCoefficient
}