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
givi [52]
3 years ago
12

Write a program that calculates taxi fare at a rate of $1.50 per mile. Your pro-gram should interact with the user in this manne

r:TAXI FARE CALCULATOREnter beginning odometer reading=> 78602.5Enter ending odometer reading=> 78622.7You traveled a distance of 20.2 miles. At $1.50 per mile,your fare is $30.30.
Computers and Technology
1 answer:
NISA [10]3 years ago
8 0

Answer:

print("TAXI FARE CALCULATOR\n")

beginning = float(input("Enter beginning odometer reading => "))

ending = float(input("Enter ending odometer reading => "))

distance = ending - beginning

fare = 1.50 * distance

print("You traveled a distance of %.1f" % distance + " miles. At $1.50 per mile, your fare is $ %.2f" % fare)

Explanation:

*The code is in Python.

Print the title

Ask the user to enter beginning and ending of the odometer reading. Calculate the distance by subtracting these values

Calculate the fare, multiply the distance by 1.50

Print the distance and fare in required format

You might be interested in
Why can’t web apps send notifications to a device’s taskbar when the app is closed?
tangare [24]
Web apps can't send notifications when it's closed because it is not installed into the device as a software program, meaning it doesn't have enough access to do so. Plus you are closing it down so how is something that you close down supposed to work?
8 0
4 years ago
Suppose a system administrator at sls happened to read the details of this case. what steps should he or she take to improve the
kvv77 [185]
He should add more security applications to the software and inform the company to not tell any details.
6 0
4 years ago
You can press and hold [Tab] and click the Normal button on the status bar to display the slide master.
tester [92]

Answer:

False.

Explanation:

No, By pressing and holding tab and clicking the normal button on the status bar will not help you in opening the slide master. By holding the shift key and pressing the first icon as shown in this figure will open the slide master for you.

5 0
3 years ago
Read 2 more answers
Multiple layers provide multiple road blocks for a ________.
Hatshy [7]

Individual or other words user and attackers

4 0
4 years ago
1.
Umnica [9.8K]

Answer:

B

Explanation:

trust

7 0
3 years ago
Other questions:
  • How does scarcity affect what gets produced
    5·1 answer
  • True or false. Embedding only part of a font is called presetting.
    14·1 answer
  • A technician is trying to recover information on a computer that has been hidden or deleted on purpose in order to hide evidence
    5·1 answer
  • Which is an example of synchronous communication? e-mail voicemail text message telephone conversation
    11·2 answers
  • Are principles which allow designers to create blank designs
    15·1 answer
  • The leader in student travel who provides educational tours at affordable prices is called?
    8·1 answer
  • You should structure the first before you search for a relevant picture.
    8·1 answer
  • Determine the number of character comparisons made by the brute-force algorithm in searching for the pattern GANDHI in the text
    7·1 answer
  • What is the purpose of extent in lines in engineering drawing
    12·1 answer
  • Computer are most wonderful creation of 21st century how ?​
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!