/**
 * A carpenter wants to create a list of wood planks with a specified number and length.
 *
 * Complete the function createWoodPlanks that takes in the number of planks and the length of each plank,
 * and returns a list of wood planks with the initial elements as specified.
 *
 * @param numPlanks The number of wood planks to create.
 * @param length The length of each wood plank.
 * @return The list of wood planks with the initial elements as specified.
 *
 * Example:
 * createWoodPlanks(3, 4.5) -> [4.5, 4.5, 4.5]
 *
 * Note:
 * The length can be a decimal number and the number of planks can be any positive integer.
 */
fun createWoodPlanks(numPlanks: Int, length: Double): List<Double> {

    // Use the List constructor with the specified number of planks to create the list
    return List(numPlanks) { length }
}
/**
 * A carpenter wants to create a list of wood planks with a specified number and length.
 *
 * Complete the function createWoodPlanks that takes in the number of planks and the length of each plank,
 * and returns a list of wood planks with the initial elements as specified.
 *
 * @param numPlanks The number of wood planks to create.
 * @param length The length of each wood plank.
 * @return The list of wood planks with the initial elements as specified.
 *
 * Example:
 * createWoodPlanks(3, 4.5) -> [4.5, 4.5, 4.5]
 *
 * Note:
 * The length can be a decimal number and the number of planks can be any positive integer.
 */
fun createWoodPlanks(numPlanks: Int, length: Double): List<Double> {
/**
 * A carpenter wants to create a list of wood planks with a specified number and length.
 *
 * Complete the function createWoodPlanks that takes in the number of planks and the length of each plank,
 * and returns a list of wood planks with the initial elements as specified.
 *
 * @param numPlanks The number of wood planks to create.
 * @param length The length of each wood plank.
 * @return The list of wood planks with the initial elements as specified.
 *
 * Example:
 * createWoodPlanks(3, 4.5) -> [4.5, 4.5, 4.5]
 *
 * Note:
 * The length can be a decimal number and the number of planks can be any positive integer.
 */
fun createWoodPlanks(numPlanks: Int, length: Double): List<Double> {

    // Use the List constructor with the specified number of planks to create the list
    return List(numPlanks) { length }
}