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.
4 Answers
+ 1
Show your attempt first
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 ?
0
@Atul & @Abhay, I don't even understand the question myself
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!