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
Novay_Z [31]
3 years ago
5

Write a program that will input miles traveled and hours spent in travel. The program will determine miles per hour. This calcul

ation must be done in a function other than main; however, main will print the calculation. The function will thus have 3 parameters: miles, hours, and milesPerHour. Which parameter(s) are pass by value and which are passed by reference
Computers and Technology
1 answer:
svp [43]3 years ago
4 0
Def calculations(miles, hours):
milesPerHour = miles / hours
return milesPerHour

def main():
miles = input("Enter Miles driven: ")
hours = input("Enter Travel Hours: ")
print(calculations(miles, hours))

if __name__=='__main__':
main()
You might be interested in
Which is a basic job requirement for a career in corrections services?
Diano4ka-milaya [45]

You must have a high school diploma

7 0
3 years ago
Find the error in the statement below.
qwelly [4]

Answer:

I think it's C) The semi-colon should be a colon.

Explanation:

4 0
3 years ago
A domain name points to a specific internet address known as a? A. Domain name B. User name C. URL D. IP address
hodyreva [135]
C, URL since the other options aren’t addresses at all
6 0
4 years ago
Which data type is also called a binary object?
Leno4ka [110]
For Plato users it's 
2. BLOb
4 0
3 years ago
Assuming that you are using windows 8, the first screen you see when you start your computer is called the:
gregori [183]
 is the answer to the log in screen
4 0
3 years ago
Other questions:
  • A senior center would like to add a new computer to their library so that members can check their email and read book reviews
    11·2 answers
  • When a communication exchange that does not verify the identity of the endpoints of a communication and accepts any properly for
    10·1 answer
  • What is an algorithm? An executable file that has been converted into machine language A set of markup instructions A set of ins
    6·1 answer
  • Who can pick up GPS signals
    14·1 answer
  • E-mail is the most common distributed application that is widely used across all architectures and vendor platforms.a) trueb) fa
    8·1 answer
  • ACME Corp. is developing a software program that can run on mobile devices so that customers can interact with the firm, view pr
    13·1 answer
  • Read the excerpt from Act 111, scene iii of Romeo and Juliet. Which is the best paraphrase of this dialogue
    11·1 answer
  • What is the command to list files in Unix and Unix like operating system?​
    15·1 answer
  • What should you consider when using a wireless keyboard with your home computer
    15·1 answer
  • _____________ do not contribute to effective group work.
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!