/**
 * This function calculates the amount of fabric required for a given pattern based on the fabric width and length,
 * as well as the number of patterns needed.
 *
 * @param pattern The name of the pattern.
 * @param fabricWidth The width of the fabric in inches.
 * @param fabricLength The length of the fabric in inches.
 * @param numPatterns The number of patterns needed.
 * @return The total amount of fabric required in square inches.
 */
fun calculateFabricRequired(pattern: String, fabricWidth: Float, fabricLength: Float, numPatterns: Int): Float {

    // Calculate the fabric area required for a single pattern
    val patternArea = fabricWidth * fabricLength

    // Calculate the total fabric required for the given number of patterns
    val totalFabricRequired = patternArea * numPatterns

    return totalFabricRequired
}
/**
 * This function calculates the amount of fabric required for a given pattern based on the fabric width and length,
 * as well as the number of patterns needed.
 *
 * @param pattern The name of the pattern.
 * @param fabricWidth The width of the fabric in inches.
 * @param fabricLength The length of the fabric in inches.
 * @param numPatterns The number of patterns needed.
 * @return The total amount of fabric required in square inches.
 */
fun calculateFabricRequired(pattern: String, fabricWidth: Float, fabricLength: Float, numPatterns: Int): Float {
/**
 * This function calculates the amount of fabric required for a given pattern based on the fabric width and length,
 * as well as the number of patterns needed.
 *
 * @param pattern The name of the pattern.
 * @param fabricWidth The width of the fabric in inches.
 * @param fabricLength The length of the fabric in inches.
 * @param numPatterns The number of patterns needed.
 * @return The total amount of fabric required in square inches.
 */
fun calculateFabricRequired(pattern: String, fabricWidth: Float, fabricLength: Float, numPatterns: Int): Float {

    // Calculate the fabric area required for a single pattern
    val patternArea = fabricWidth * fabricLength

    // Calculate the total fabric required for the given number of patterns
    val totalFabricRequired = patternArea * numPatterns

    return totalFabricRequired
}