i dont even know where to start in this one lol .......
write a program to calculate and print the total parking
charges for a customer at a long term parking lot. The charges are calculated according to the number of days parked at the lot. The parking charges for the first 15 days of are $10
per day. After that, the charges are $6 per day.
should i use a if statement? while loop? for loop? or does it even matter?
how do i make python calculate the dates ..heres wha i started wit and got stuck
def parking_charges(entermonth, enterday, exitmonth, exitday):
if exitday - enterday == 15:
print("Your Total Is $120")
now that works correctly if i put in the right date.... example:
parking_charges(10, 1, 10, 16)
but if i do anything else its wrong .. i think u have to do sumthing with entermonth and exit month to correctly calculate but i dont understand ...
my teacher is no help ... shes one of those who knows it and thinks we already know it ...but we are at entry level so we really dont know anything Lol ...please help