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
yKpoI14uk [10]
3 years ago
5

Write a function so that the main program below can be replaced by the simpler code that calls function mph_and_minutes_to_miles

(). Original main program:miles_per_hour = float(input())minutes_traveled = float(input())hours_traveled = minutes_traveled / 60.0miles_traveled = hours_traveled * miles_per_hourprint('Miles: %f' % miles_traveled)Sample output with inputs: 70.0 100.0Miles: 116.666667

Computers and Technology
1 answer:
Ksivusya [100]3 years ago
6 0

Answer:

def mph_and_minutes_to_miles(hours_traveled,miles_traveled ):

   hours_traveled = minutes_traveled / 60

   miles_traveled = hours_traveled * miles_per_hour

   print('Miles: %f' % miles_traveled)

Explanation:

Using Python programming language. The function is given above specifying two positional arguments (hours_traveled,miles_traveled)

In the main function, the user is prompted for inputs, the method is called and the user's input is passed as parameters. See complete code and output attached

You might be interested in
Identify the true statements about the approach to privacy around the world. a. Uncertainty concerning the nature, extent, and v
Thepotemich [5.8K]

Answer:

a. Uncertainty concerning the nature, extent, and value of privacy is widespread.

d. Significant disagreement about privacy exists within the United States.

6 0
3 years ago
As a chemical engineer, what would you be most likely to do in your job?
stealth61 [152]

Answer:

The correct option is;

Design sewer treatment plants

Explanation:

Chemical engineers, also known as a process engineer, are involved in the design and development of cost beneficial ways of utilizing energy and materials which can mostly be established as a chemical manufacturing process

The chemical engineer works by applying scientific principles to resolve and provide amicable solutions to the production usage, disposal, and waste management, of chemical and other related materials

Chemical engineers conducts research into the usage of materials and production process.

6 0
3 years ago
Jack is going for a safari. Which camera should he take with him and why?
kogti [31]

Answer:

digital single-lens reflex

lens

Explanation:

The best option for Jack is using a digital single-lens reflex because this kind of cameras has a great quality image and resolution, and we can change the lens, the camera is important, but the most important thing is the lens, if we want to do landscape photo, we must use a wide-angle lens, if we want to do animal photos, we must a telephoto lens.

7 0
4 years ago
What is a reason for zipping a file?A. to encrypt themB. to return them to their original sizeC. so they display properly on a W
Morgarella [4.7K]

A reason for zipping a file is:

  • D. to combine multiple files into one.

<h3>What is Zipping a File for?</h3>

When a person converts any file to a Zip, it may have one of the following reasons:

  • Reduce the size of the files.
  • Merge files into one.
  • Facilitate the sending of files by mail or others.

Therefore, among the given options, it is possible that a person has as objective to combine multiple files into one, in this way you will be able to find in a single file the information concerning a specific topic and send or transport it more easily.

If you want to learn more about Files, you can visit the following link: brainly.com/question/4461652

5 0
3 years ago
Pls say correct guyz pls pls pls
ohaa [14]

correct

Explanation:

I like your choice of words. you seem like a high level writer. keep up the good work!

7 0
3 years ago
Other questions:
  • Consider the situation you addressed in the previous question. Create numeric cost estimates for each of the costs you listed. C
    10·1 answer
  • Prompt the user to input an integer, a double, a character, and a string, storing each into separate variables. Then, output tho
    9·1 answer
  • To prevent class objects from being copied or assigned, you can:
    8·1 answer
  • For this exercise, you are given a phrase. Return the number of time the word “dog” appears in the phrase.
    7·1 answer
  • Text can be inserted into a presentation by
    7·1 answer
  • Cuales son las funcione basica de la computadora​
    9·1 answer
  • Complete the function to return the factorial of the parameter using recursion,
    10·2 answers
  • Determine what is printed by the following code.
    8·1 answer
  • if prakash gives one of the marble from what he possessses to kamala then they will have equal number of marbles.if kamala gives
    10·1 answer
  • How can you prevent someone with access to a mobile phone from circumventing access controls for the entire device
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!