asked 133k views
4 votes
The cost to rent a steam cleaner from the hardware store is $17.50 a day with

a $10 late charge if not returned by 6pm. Write a function for using the

steam cleaner more than one day and returning it late. Calculate the cost of

renting it on Tuesday and then your Mama came and took it on Wednesday

and then your sister took it from your Mama on Thursday and returned it to

you on Friday and you took it back at 6:15pm.

1 Answer

4 votes

Let's define the function for the cost of renting the steam cleaner as follows:

If the steam cleaner is returned on time, the cost is $17.50 times the number of days rented.

If the steam cleaner is returned late, the cost is ($17.50 times the number of days rented) plus the $10 late charge.

Using this function, we can calculate the cost of renting the steam cleaner on each day and sum them up to get the total cost. Here's how we can do it for the given scenario:

Tuesday: Rented for 1 day, returned on time. Cost = $17.50.

Wednesday: Rented for 1 day, returned late. Cost = ($17.50 + $10) = $27.50.

Thursday: Rented for 1 day, returned on time. Cost = $17.50.

Friday: Rented for 1 day, returned late. Cost = ($17.50 + $10) = $27.50.

Total cost = $17.50 + $27.50 + $17.50 + $27.50 = $90.00

Therefore, the total cost of renting the steam cleaner for the given scenario is $90.00.

answered
User Sasha Prent
by
8.2k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.