• + 0 comments

    Kotlin

    fun solve(meal_cost: Double, tip_percent: Int, tax_percent: Int): Unit {
        // Write your code here
    
        val tipPrice = tip_percent*0.01*meal_cost
        val taxPrice = tax_percent*0.01*meal_cost
        
        println(Math.round(meal_cost + tipPrice + taxPrice))
    }