+ 1
Kotlin Parking Fee Quiz Question
Please could anyone help me out with the kotlin parking fee quiz. I've done so many different things but it still shows no output. I've run out of ideas :(
11 Answers
+ 3
changed >= 24.0 -> total = 15 * days + (hours %24) * 0.5
The variable changed is
Var changed: Double = hours + 0.0
+ 1
How many test cases work
+ 1
i can tell you two lines of code if test cases 3 5 and 6 dont work
+ 1
You want full code
+ 1
All wrong test cases are double then 24 and for EVERY 24 HOUR the fee is 15 $
0
Sharique Khan giving answer without explaining and almost without asking for OP code before is bad practice: how will he learn if you do all for him, let him avoiding to think?
0
Eashan Morajkar Just 2 test cases work
0
Ok
0
So if test case is 48 , the anser should be 30.0 and not 27.0
0
Thank you I'll try it
0
Can you paste your code here so we can have a look?