Kotlin Parking fee project
can anyone help me evaluate this code because I am having issues with test case 4 in the kotlin project. fun main(args: Array<String>) { var hours = readLine()!!.toInt() var total: Double = 0.0 val hourChecker: Int = hours / 24 if (hours < 0){ println("Wrong Input. Please try again!") } else{ if (hours >= 5 && hours < 24) { total += 5 hours -= 5 } if (hours >= 24) { total = (15 * hourChecker) + (hours - (24 * hourChecker)) * 0.5 println(total) } else if (hours < 24) { total = total + (0.5 * hours) println(total) } else { total = hours * 0.5 println(total) } } }