Ask Question
14 October, 13:44

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. 14 October, 14:29
    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?
Get 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 & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers