Question: I'm having trouble with the problem below. I think what I need to do is set it up so that the number of minutes entered
I'm having trouble with the problem below. I think what I need to do is set it up so that the number of minutes entered in as the rental time is divided by 60 to get the number of hours that the rental is used and then find the remainder of minutes that the rental is used. I would then times the hours by the hourly rate and times the remainder to the minute rate then add the 2 rates together to get the total. However, I can't seem to figure out the way to do so.
a. Sammy's Seashore Supplies rents beach equipment such as kayaks, canoes, beach chairs, and umbrellas to tourists. In Chapters 3 and 4, you created a Rental class for the company.
Now, make the following change to the class:
- Currently, a rental price is calculated as $40 per hour plus $1 for each minute over a full hour. This means that a customer who rents equipment for 41 or more minutes past an hour pays more than a customer who waits until the next hour to return the equipment. Change the price calculation so that a customer pays $40 for each full hour and $1 for each extra minute up to and including 40 minutes.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
