0

Practical project, test case # 1 marked correct but test case #2 is wrong why? Please

Practical project, test case # 1 marked correct but test case #2 is wrong why? Please

26th Aug 2021, 11:57 AM
Emmanuel Ackah
Emmanuel Ackah - avatar
5 Respuestas
+ 3
Emmanuel Ackah , if you really have a problem, we need some more details from you: ▪︎give a clear and complete description about your task ▪︎if your question is related to an exercise in a tutorial, please mention the tutorial name and the lesson number ▪︎if there are error messages please post them here ▪︎give at least one sample with input data and the expected output ▪︎to be able to find out the issues you have, we need to see your code     => please put your code in playground, save it there and post a link to it here. thanks for your understanding!
26th Aug 2021, 12:00 PM
Lothar
Lothar - avatar
+ 1
Emmanuel Ackah Is this the Water Consumption challenge? If you attach your code, we can see what the problem is and directly help
26th Aug 2021, 12:01 PM
Rik Wittkopp
Rik Wittkopp - avatar
0
Because your code is not suitable for all situations. Satisfied only a few cases. Consider all the situations where you try to improve your code
26th Aug 2021, 11:59 AM
Obloev Komronbek
Obloev Komronbek - avatar
0
No the Water Consumption, is the parking fees
26th Aug 2021, 12:28 PM
Emmanuel Ackah
Emmanuel Ackah - avatar
0
fun main(args: Array<String>) { var hours = readLine()!!.toInt() var total: Double = 0.0 var ans: Double = 5+(13*0.5) println(ans) }
26th Aug 2021, 12:31 PM
Emmanuel Ackah
Emmanuel Ackah - avatar