1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
ra1l [238]
4 years ago
15

Five Star Retro Video rents VHS tapes and DVDs to the same connoisseurs who like to buy LP record albums. The store rents new vi

deos 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
Computers and Technology
1 answer:
stellarik [79]4 years ago
8 0

Answer:

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))

Explanation:

You might be interested in
A bookstore owner wants to allow customers to pay for books using their mobile phones. Which version of iOS will support the boo
swat32
Answer is iOS 9 & Apple Pay
7 0
3 years ago
Read 2 more answers
PYTHON
Nina [5.8K]

Answer:

This is one of the efficient ways to find the number of occurrences of a given number in a list:

<h3><u>def find_num(arr,n):</u></h3><h3><u>    return len([count for count in arr if count == n])</u></h3><h3><u>print(find_num([0,1,1,1,0],1))</u></h3>

If you want a simpler version, you can try this:

<h2><u>def find_num(arr,n):</u></h2><h2><u>    count = 0 </u></h2><h2><u>    for i in range(len(arr)): </u></h2><h2><u>        if arr[i]==n: </u></h2><h2><u>            count += 1 </u></h2><h2><u>    return count</u></h2><h2><u>print(find_num([0,1,1,1,0],1))</u></h2>

This is the simplest method:

<h2><u>arr = [0,1,1,1,0]</u></h2><h2><u>print(arr.count(1))</u></h2>

I think I gave you enough examples. This should get you started off easily.

If you need an explanation, I am happy to help you. BTW I started python 6 months back so even I am pretty new to this.

4 0
3 years ago
Which type of hazzard are those substances which threathen you physical safety ?​
vovikov84 [41]

Answer:

98o

Explanation:

4 0
3 years ago
What is the awnser ?
Igoryamba

Its the second one. Hope this helps.   :)

4 0
4 years ago
ravi met few peoples in a party and was mixing up well those wearing expensives clothing and fair complexion . which factors are
Lady_Fox [76]

The factor that influenced Ravi's perspective towards the people can be referred to as <u>Visual perspective.</u>

<u></u>

<h3>What do you mean by Visual perspective?</h3>

Visual perception or sight can be defined as the ability to interpret the encircling surroundings via photopic vision, color vision, scotopic vision, and mesopic vision, the usage of light withinside the visible spectrum meditated through items withinside the surroundings.

It also means the ability to see the world through others' perspectives, which takes into account what and how they see it.

Thus, The factor that influenced Ravi's perspective towards the people can be referred to as <u>Visual perspective.</u>

<u></u>

Learn more about Visual perspective:

brainly.com/question/14956318

#SPJ1

<u></u>

6 0
2 years ago
Other questions:
  • Coretta is thinking about which careers she would enjoy. She considers her personal skills and interests. She enjoys reading and
    13·2 answers
  • A _____ is a form of Web conferencing that uses streaming media technologies to broadcast video and/or audio over the Internet f
    15·2 answers
  • A dedicated website was created where fans could post photos of the pages from decoded that they found. in the communication pro
    11·2 answers
  • Which country began expanding its borders with exploration in the late 16th<br>century?​
    15·1 answer
  • Someone please help me? Thanks!
    10·2 answers
  • How do you make Thumbnails and outros on Youtube for free?
    8·1 answer
  • Write 2-3 lines about the Basic operations of computer
    5·1 answer
  • A method that movie distributors are adopting to make it possible to view movies instantly, without DVD, is known as:
    11·1 answer
  • What are three key characteristics of an OS process?
    11·1 answer
  • What message did vera mukhina convey in her work entitled the worker and the collective farmworker?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!