0

Python programming question:

A babysitter charges N250 an hour until 9:00 PM when the rate drops to N175 an hour (the children are in bed). Write a program that accepts a starting time and ending time in hours and minutes and calculates the total babysitting bill within a 24 hour period. Please help provide a code using Python as the programming language.

7th Feb 2021, 10:07 AM
Olumide Akinwale
Olumide Akinwale - avatar
4 Réponses
+ 1
Show your attempt first
7th Feb 2021, 10:13 AM
Atul [Inactive]
0
N250 until 9 pm , but when is N250 starting ? at 12 pm or when? And when does M175 /hr ends after starting at 9PM ? And would you show what you have written so far or just can't understand how to begin with ?
7th Feb 2021, 10:16 AM
Abhay
Abhay - avatar
0
@Atul & @Abhay, I don't even understand the question myself
7th Feb 2021, 11:23 AM
Olumide Akinwale
Olumide Akinwale - avatar
0
That’s a great Python question! I’ve faced similar logic challenges before, especially when working with scheduling or matching algorithms. In fact, while researching different app models and business logic, I came across this interesting article: https://www.cleveroad.com/blog/uber-for-babysitters-right-model-to-create-a-babysitting-app/ — it explores how certain service apps handle backend logic, which might give you ideas too. Keep experimenting — Python has so many versatile tools to work with!
31st Jul 2025, 10:01 AM
Mkw9isjna