Ask Question
20 February, 01:31

Five Star Retro Video rents VHS tapes and DVDs to the same connoisseurs who like to buy LP record albums. The store rents new videos for $3.00 a night, and oldies for $2.00 a night. Write a program that the clerks at Five Star Retro Video can use to calculate the total charge for a customer's video rentals. The program should prompt the user for the number of each type of video and output the total cost. An example of the program input and output is shown below: Enter the number of new videos: 3 Enter the number of oldies: 2 The total cost is $13.0 in Python

+3
Answers (1)
  1. 20 February, 03:10
    0
    n1 = eval (input ("Enter the number of new videos: "))

    n2 = eval (input ("Enter the number of oldies: "))

    print ("/nThe total cost is $%.1f"% (n1*3+n2*2))
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Five Star Retro Video rents VHS tapes and DVDs to the same connoisseurs who like to buy LP record albums. The store rents new videos for ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers