0

Pls help me out, I don't know why this code won't pass test 3, 5 and 6.

https://code.sololearn.com/c69YoX0r28A8/?ref=app

19th Jul 2021, 11:52 PM
Abdul-Quadri Jinad
Abdul-Quadri Jinad - avatar
4 ответов
+ 4
Pay attention to this condition: — "for each 24 hours, there is a flat fee of $15".
20th Jul 2021, 1:07 AM
Solo
Solo - avatar
+ 2
No, this means that for every next 24 hours a flat fee of $15 will be charged, that is, 15 × 2 + 2 dollars will be charged for 50 hours.
20th Jul 2021, 10:18 AM
Solo
Solo - avatar
+ 1
Abdul-Quadri Jinad What will happen if you park for 3+ days. Test against your code to understand Vasiliy explanation
20th Jul 2021, 10:35 AM
Rik Wittkopp
Rik Wittkopp - avatar
0
Yh, that means if the hours is more than 24, that'll be 15 + the remaining hours * 1 if the remainder is less than 5 right?
20th Jul 2021, 9:30 AM
Abdul-Quadri Jinad
Abdul-Quadri Jinad - avatar