/**
 * As an astronomer, you are given a list of observations containing the brightness of different stars.
 * Your task is to write a function that returns a list of all stars that are brighter than a given threshold.
 * Use list comprehension and looping statements to solve the exercise.
 */
fun findAllStars(brightnessThreshold: Double, observations: List<Double>): List<Double> {

    return observations.filter { it > brightnessThreshold }
}

// Example Usage:
/**
 * As an astronomer, you are given a list of observations containing the brightness of different stars.
 * Your task is to write a function that returns a list of all stars that are brighter than a given threshold.
 * Use list comprehension and looping statements to solve the exercise.
 */
fun findAllStars(brightnessThreshold: Double, observations: List<Double>): List<Double> {
/**
 * As an astronomer, you are given a list of observations containing the brightness of different stars.
 * Your task is to write a function that returns a list of all stars that are brighter than a given threshold.
 * Use list comprehension and looping statements to solve the exercise.
 */
fun findAllStars(brightnessThreshold: Double, observations: List<Double>): List<Double> {

    return observations.filter { it > brightnessThreshold }
}

// Example Usage: