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
andriy [413]
3 years ago
4

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.0 miles_traveled = hours_traveled * miles_per_hour print('Miles: {:f}'.format(miles_traveled)) Sample output with inputs: 70.0 100.0 Miles: 116.666667
Computers and Technology
1 answer:
slavikrds [6]3 years ago
4 0

Answer:

def mph_and_minutes_to_miles(miles_per_hour, minutes_traveled):

   hours_traveled = minutes_traveled / 60.0

   miles_traveled = hours_traveled * miles_per_hour

   return miles_traveled

miles_per_hour = float(input())

minutes_traveled = float(input())

print('Miles: %f' % mph_and_minutes_to_miles(miles_per_hour, minutes_traveled))

Explanation:

You might be interested in
ENG103 DISCUSSION BOARD 6
amm1812
The proper citation for your course of study -computer related- is APA (American Psychological Association)  format. This citation format allows us to state the publication date, title , and authors in an organized and short fashion. All scholarly reports that are technology or psychology based, should be cited in APA format. 

<span>I know this because it is the format I use for all of my college courses which are all Computer/Technology related. </span>
3 0
3 years ago
In pseudocode you can use the _________ library function to determine whether a character is an alphabetic letter.
Sunny_sXe [5.5K]

Answer:  isalpha()

Explanation:

isalpha() is the library function that is used for algorithm and programs for checking whether the given character is alphabet or any other character such as numbers,etc.It can take a integer value for checking character and then return a integer value.

  • The passed character for checking gets converted into integer form for evaluation.If the returned integer is zero then ,given character is not alphabet otherwise a non- zero return value indicated alphabet.
  • isalpha() Function Prototype :-int isalpha(int argument);

6 0
3 years ago
If your Word page is visually confusing after combining documents, one way to simplify the page is to select Hide Source Documen
FrozenT [24]
I’m not really sure but I’ll T
6 0
4 years ago
Which of the following statements is true of San serif fonts?
Vsevolod [243]
They are easier to read on a computer screen
7 0
3 years ago
Read 2 more answers
What software can only be modified by the company that owns it?
podryga [215]

Answer:

Proprietary

Explanation:

Free and Open source is available for anyone to do modifications.

7 0
3 years ago
Other questions:
  • Zack wants to be a landscape designer.which qualification would be best prepare him for work in this career
    12·2 answers
  • An incorrectly spelled word is indicated by _______. a. a red checkmark beside the word b. the word higlighted in yellow c. a re
    8·2 answers
  • When does the VB.NET programming environment start to operate?
    10·1 answer
  • What width would you choose for the pdf?
    12·1 answer
  • If the ____________ is broken on a laptop, chances are other parts are also broken.
    12·1 answer
  • Problems of mobile phones
    8·1 answer
  • Paul listed the websites he searched to find information on a career in biology ​
    15·1 answer
  • Define a class Person that represents a person. People have a name, an age, and a phone number. Since people always have a name
    7·2 answers
  • Which of these is a discipline?
    11·1 answer
  • Computers were originally developed to accomplish various tasks in relative isolation, very different from the collaboration and
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!