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
Tanya [424]
4 years ago
13

Write a python script that will compute and display information for a company which rents vehicles to its customers.

Computers and Technology
1 answer:
Oliga [24]4 years ago
6 0

Answer:

The code is given in Python with appropriate tags/quotes for better understanding

Explanation:

# python code that will compute and display information for a company which rents vehicles to its customers.

code = raw_input("Enter classification code (a character either B, D, or W): ")

days = int(raw_input("Enter number of days the vehicle was rented: "))

start = int(raw_input("odometer reading at the start of the rental period: "))

end = int(raw_input("odometer reading at the end of the rental period: "))

charge = 0.0

if code == 'B':

   charge = 40.00*days + (end-start)*0.25

elif code == 'D':

   charge = 60.00*days

   if (end -start)/days > 100:

       charge = charge + 0.25*((end-start)/days-100)

elif code == 'W':

   if days > 7:

       charge = charge + (days/7)*350

       days = days%7

       charge = charge + (days)*70

   else:

       charge = 350

else:

   print "Invalid code"

print "Total charge: $" ,charge

'''

output:

Enter classification code (a character either B, D, or W): W

Enter number of days the vehicle was rented: 23

odometer reading at the start of the rental period: 2

odometer reading at the end of the rental period: 2

Total charge: $ 1190

'''

You might be interested in
List at least 5 features that can be used to format a report in word 2013
Masteriza [31]

Answer:

Following are the features for formatting a report in word 2013

  1. Design Tab
  2. Convenient Layout options and alignment
  3. Resume work option
  4. Managing longer documents in a better way
  5. Enhanced table features

Explanation:

In word 2013, many of the new features were introduced:

  • The design tab was given a new look, including templates options and much more.
  • The layout option was also made much convenient by putting all necessary option under the right-click option.
  • Word started to present an option for resuming the work were you left last time. This made the working much efficient.
  • By dealing with headings the word 2013 version made it easier to compact the document by collapsing heading and focus on the specific part you want.
  • Many of the options were added to tables formatting such as border, colors, line weight and much more.

i hope it will help you!

8 0
3 years ago
The price elasticity of demand for mobile phones a. will be higher if there is an improvement in the production technology. b. w
rodikova [14]

Answer:

b. will be lower if consumers perceive mobile phones to be a necessity.

Explanation:

The price elasticity of demand is described as the percentage variation in the demanded quantity of service or goods divided by the change in the percentage of the price. And henceforth it describes the responsiveness of the demanded quantity to a price change. And now if the mobile phones are thought of as being the necessity then the price will increase as demand will increase, and hence the price elasticity of demand will be lower. And if there is an improvement in the production technology then the price will be lowered, and hence price elasticity of demand will be less as the change in the percentage of the price will be negative. And the exact definition of it as we have described above. Hence, b is correct options.

3 0
3 years ago
Python
Viefleur [7K]

Answer:

HH

Explanation:

5 0
3 years ago
The ____ contains buttons that provide different views of the document window, and some common operations related to viewing and
alexandr402 [8]
I think it is called a document tool bar
8 0
3 years ago
In which type of referencing do you get a warning message? Explain why.​
Art [367]

Answer:

These are the problems that are not severe enough to prevent processing. They mainly complain about the previous version of your document. In the case of command invalid, the latex gives a warning and henceforth it needs to be fixed.

Explanation:

There are some bugs in which they are not that severe that make the system not process.. but they are still mistakes in which might affect how the program run those parts.. like in JavaScript in the program i use, the minor bugs are like symbolized as yellow triangle and they are normally like signalizing a grammar error in the code and the app still runs but just that part of the code is invalid or reads wrong.. while big errors like codes that dont make sense, those make a red squareish that as soon as you try to run the program the debug console states in all red "Line 50(or whatever line) SyntaxError" or other things

5 0
3 years ago
Other questions:
  • You have a hard disk that is formatted with the fat32 file system. you would like to implement file and folder permissions on th
    10·1 answer
  • What type of power flaw involves a fluctuation in voltage levels caused by other devices on the network or by EMI?
    13·1 answer
  • Eric has asked you to help him build a new gaming computer so that he can play the newest games available. He also wants the com
    6·1 answer
  • Assume that a is an array of two or more integers, and that b and c are integers.
    13·1 answer
  • What are some of the challenges of note-taking? Check all that apply.
    7·2 answers
  • Write a method called sum with a while loop that adds up all numbers between two numbers a and b. The values for a and b can be
    11·2 answers
  • HELP BRAINLST!!<br><br> How is labor already being automated in supermarkets?
    9·1 answer
  • What is the reason for taking care of design a good computer human interface ​
    9·1 answer
  • Realiza una tabla acerca de los escenarios de usos más comunes de Excel.
    15·1 answer
  • Which of the expressions is false? when a = 10 and b = 4
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!