/**
 * Given a tuple containing economic data and an index, returns the corresponding element in the tuple after dividing it by 10.
 *
 * @param economicData A tuple containing economic data
 * @param index The index of the element to be accessed
 * @return The element at the given index divided by 10
 * @throws IndexOutOfBoundsException If the index is out of range
 *
 * Example:
 * indexTupleElements(listOf(10, 20, 30, 40, 50), 3) -> 4.0
 */
fun indexTupleElements(economicData: List<Int>, index: Int): Float {

    try {
        var element = economicData[index].toFloat()
        element /= 10
        return element
    } catch (e: IndexOutOfBoundsException) {
        throw IndexOutOfBoundsException("Index out of range")
    }
}
/**
 * Given a tuple containing economic data and an index, returns the corresponding element in the tuple after dividing it by 10.
 *
 * @param economicData A tuple containing economic data
 * @param index The index of the element to be accessed
 * @return The element at the given index divided by 10
 * @throws IndexOutOfBoundsException If the index is out of range
 *
 * Example:
 * indexTupleElements(listOf(10, 20, 30, 40, 50), 3) -> 4.0
 */
fun indexTupleElements(economicData: List<Int>, index: Int): Float {
/**
 * Given a tuple containing economic data and an index, returns the corresponding element in the tuple after dividing it by 10.
 *
 * @param economicData A tuple containing economic data
 * @param index The index of the element to be accessed
 * @return The element at the given index divided by 10
 * @throws IndexOutOfBoundsException If the index is out of range
 *
 * Example:
 * indexTupleElements(listOf(10, 20, 30, 40, 50), 3) -> 4.0
 */
fun indexTupleElements(economicData: List<Int>, index: Int): Float {

    try {
        var element = economicData[index].toFloat()
        element /= 10
        return element
    } catch (e: IndexOutOfBoundsException) {
        throw IndexOutOfBoundsException("Index out of range")
    }
}