QuestionQ116
VerifiedControl Flow – Conditional Blocks and LoopsABC Video needs a way to calculate the amount a customer pays to rent a DVD. The cost depends on the time of day the DVD is returned, with special rates on Thursdays and Sundays. The fee structure is as follows:
- The charge is $1.59 per night.
- If the DVD is returned after 8 PM, the customer is charged for an additional day.
- If the video is rented on a Sunday, the customer receives 30% off for however long they keep it.
- If the video is rented on a Thursday, the customer receives 50% off for however long they keep it.
Write code that meets these requirements.

What should be inserted in place of XXX, YYY, and ZZZ?
Community Discussion