Ask 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 $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. 30 May, 01:16
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers