<< Prev Question Next Question >>

Question 8/20

HOTSPOT
The ABC Video company needs a way to determine the cost that a customer will pay for renting a DVD.
The cost is dependent on the time of day the DVD is returned. However, there are also special rates on Thursdays and Sundays. The fee structure is shown in the following list:
The cost is $1.59 per night.

If the DVD is returned after 8 PM, the customer will be charged an extra day.

If the video is rented on a Sunday, the customer gets 30% off for as long as they keep the video.

If the video is rented on a Thursday, the customer gets 50% off for as long as they keep the video.

You need to write code to meet the requirements.
How should you complete the code? To answer, select the appropriate code segments in the answer area.
Hot Area:

Recent Comments (The most recent comments are at the top.)

Sushil kumar - Dec 10, 2021

i am sushil

LEAVE A REPLY

Your email address will not be published. Required fields are marked *

Question List (20q)
Question 1: You are writing a Python program to automate inventory. Your...
1 commentQuestion 2: HOTSPOT During school holidays, you volunteer to explain som...
Question 3: You are writing an application that uses the sqrtfunction. T...
Question 4: You develop a Python application for your company. A list na...
1 commentQuestion 5: DRAG DROP Match the data type to the type operations. To ans...
Question 6: DRAG DROP You are writing a Python program to perform arithm...
Question 7: You are writing code that generates a random integer with a ...
1 commentQuestion 8: HOTSPOT The ABC Video company needs a way to determine the c...
1 commentQuestion 9: You develop a Python application for your company. You need ...
1 commentQuestion 10: You are creating a Python program that shows a congratulatio...
Question 11: DRAG DROP The ABC company is converting an existing applicat...
Question 12: HOTSPOT The ABC company needs a way to find the count of par...
Question 13: HOTSPOT You are developing a Python application for your com...
Question 14: DRAG DROP You are writing a Python program that evaluates an...
Question 15: Evaluate the following Python arithmetic expression: (Exhibi...
Question 16: DRAG DROP You are writing a function that works with files. ...
Question 17: You are creating a function that manipulates a number. The f...
Question 18: HOTSPOT You are an intern for ABC electric cars company. You...
Question 19: You develop a Python application for your school. You need t...
Question 20: DRAG DROP You are writing a Python program. The program coll...