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
A ________ power station uses the energy from a small piece of metal called Uranium ​
grigory [225]

Answer:

nuclear power plant

Explanation:

A nuclear reactor, or power plant, is a series of machines that can control nuclear fission to produce electricity. The fuel that nuclear reactors use to produce nuclear fission is pellets of the element uranium. In a nuclear reactor, atoms of uranium are forced to break apart.

3 0
3 years ago
Read 2 more answers
As a high school student, what do you think is the advantage of someone who has knowledge about the basics of internet compared
serg [7]

Answer:

For your future in your career, you will definitely have an upper hand and will be able to access and use more tools.  But the person that has never used a computer before does not know what exactly they are missing.  When they try to use a computer, they will struggle with simple task that now come naturally to you.

Explanation:

8 0
2 years ago
6. Which of the following is malware? (1 point)
marusya05 [52]
Software to damage computers
5 0
3 years ago
Read 2 more answers
List inputs to a technological system
Basile [38]

The seven inputs to a technological system are people, materials, tools and machines, energy, information, finances, and time.

4 0
4 years ago
Question #11
Ganezh [65]

Answer:

Option 4: 50 is the correct answer.

Explanation:

Arithmetic operations can be performed using the programming languages. Some symbols used in programming languages are different from what we use in mathematics.

The symbol * is used to represent multiplication in programming languages.

Given

A = 5

B = 10

So, A*B will be equal to: 5*10 = 50

Hence,

Option 4: 50 is the correct answer.

3 0
3 years ago
Other questions:
  • Diane wants to maintain a record of percent change in sales from the year 2000 to the present year. She enters the values of per
    10·1 answer
  • IT professionals should help to protect users’ personal information, such as bank account information or Social Security numbers
    7·2 answers
  • Which language paradigm interacts well with database systems in business environments that use SQL? (I WILL GIVE BRAINLIEST TO T
    11·1 answer
  • Can someone answer this for me will award brainliest lol
    11·2 answers
  • Write a program that reads in ten numbers from the user and displays the distinct numbers. If a number entered by the user appea
    13·1 answer
  • _____ are labels for data, while _____ tie values together into one entity.
    15·1 answer
  • 49 points!
    14·1 answer
  • At the very lowest level what data does a computer understand?
    15·1 answer
  • Question 1 Which portion of the PuTTY package allows you to perform file transfers using the SCP (Secure Copy) protocol?
    12·1 answer
  • A hydraulic lift has a mechanical advantage of 5. If the load weighs 350 N, what effort is required to lift the weight? Provide
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!