/**
 * This function calculates the total cost of purchasing a list of books.
 *
 * @param books A list of books.
 * @param prices A list of corresponding prices for each book.
 * @return The total cost of purchasing all the books.
 *
 * Example:
 * books = listOf("Book1", "Book2", "Book3")
 * prices = listOf(10.99, 15.99, 12.50)
 * calculateTotalCost(books, prices) // 39.48
 */
fun calculateTotalCost(books: List<String>, prices: List<Double>): Double {

    var totalCost = 0.0
    for ((book, price) in books.zip(prices)) {
        totalCost += price
    }
    return totalCost
}
/**
 * This function calculates the total cost of purchasing a list of books.
 *
 * @param books A list of books.
 * @param prices A list of corresponding prices for each book.
 * @return The total cost of purchasing all the books.
 *
 * Example:
 * books = listOf("Book1", "Book2", "Book3")
 * prices = listOf(10.99, 15.99, 12.50)
 * calculateTotalCost(books, prices) // 39.48
 */
fun calculateTotalCost(books: List<String>, prices: List<Double>): Double {
/**
 * This function calculates the total cost of purchasing a list of books.
 *
 * @param books A list of books.
 * @param prices A list of corresponding prices for each book.
 * @return The total cost of purchasing all the books.
 *
 * Example:
 * books = listOf("Book1", "Book2", "Book3")
 * prices = listOf(10.99, 15.99, 12.50)
 * calculateTotalCost(books, prices) // 39.48
 */
fun calculateTotalCost(books: List<String>, prices: List<Double>): Double {

    var totalCost = 0.0
    for ((book, price) in books.zip(prices)) {
        totalCost += price
    }
    return totalCost
}