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
All computers preform disk utilization the same software.<br> true or false
nikitadnepr [17]
"All computers preform disk utilization the same software "
This is false .
3 0
4 years ago
Read 2 more answers
Machine language—0s and 1s—would be very difficult for a programmer to write in; thus a low-level (second-generation) language,
adelina 88 [10]

Answer:

Assembly Language.

Explanation:

Machine Language:- It is the lowest level programming language.It represent that the data in the form of 1's and 0's it is like this because the machines understand only binary or 1's and 0's.

Assembly Language:-It is the second generation of programming language.It can be used by a programmers to write program using abbreviations and basic words instead of binary numbers.

5 0
3 years ago
The Review tab in Microsoft Publisher provides two groupings called _____. Proofing and Language Spell Check and Research Proofi
anastassius [24]

Answer:

Proofing and language.

Explanation:

8 0
3 years ago
Infer how oil pollution affects water mammals such as otters and seals
Snowcat [4.5K]
It can pollute the whater which is the habit to many animals making it not safe fo be in the whater
4 0
3 years ago
In WebGL, we can associate a color with each vertex. If the endpoints of a line segment have different colors assigned to them,
kirill115 [55]

Answer:

Answer explained below

Explanation:

The corners of the triangle are the primary colours; points along the triangle edges represent colours achieved by mixing 2 primary colours.

Points within the triangle represent quantitatively the colours obtained by mixing the 3 primaries in varying proportions.

The match can be written C ≡ aR + bG + cB, where C is the colour to be matched, R, G, B are the chosen primaries and a, b, c, record the amount of each primary. a, b, c, are the measure of the colour C.

Multiplying a, b, c by a constant factor just changes the brightness of the colour so usually a + b + c = 1 is chosen in suitable units.

In this way we can say that the relation between the Maxwell triangle and colour cube

4 0
3 years ago
Other questions:
  • Your computer is slowing down because you’ve started a process that is taking most of the memory and CPU resources. Which of the
    7·1 answer
  • 1. Rice paste changes from white to blue black colour when a few drops of iodine solution are added to it. It shows the presence
    8·1 answer
  • The difference between a want and a need is a want is not necessary for survival. Things necessary for survival are known as ___
    6·1 answer
  • How can our perceptions help us to choose the channel for our message?
    5·1 answer
  • Create the following matrix M: 1 7 13 19 25 ?-3 9 15 21 27 5 11 17 2329By writing one command and using the colon to address ran
    8·1 answer
  • Which process best describes how you might prepare to apply for a job?
    10·2 answers
  • The algorithm ____ is used to find the elements in one range of elements that do not appear in another range of elements.
    5·1 answer
  • In most operating systems what is running application called?
    5·1 answer
  • Just letting all my friends know, i am deleting this account and making a new one same username and profile picture so you know
    6·2 answers
  • This activity will help you meet these educational goals:
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!