Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

# Define the cost of each type of video new _ release _ cost = 3 . 0 0 regular _ cost = 2 .

# Define the cost of each type of video
new_release_cost =3.00
regular_cost =2.00
childrens_cost =1.50
# Prompt the user for the number of each type of video
num_new_release = int(input("Enter the number of new release videos: "))
num_regular = int(input("Enter the number of regular videos: "))
num_childrens = int(input("Enter the number of children's videos: "))
# Calculate the total cost
total_cost =(new_release_cost * num_new_release)+(regular_cost * num_regular)+(childrens_cost * num_childrens)
# Output the total cost
print("The total cost is: \$"+ str(total_cost))

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Hadoop can process R faster because of parallel processing.

Answered: 1 week ago