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
Reptile [31]
4 years ago
14

Write the definition of a function named timeOnHighway that receives three parameters, all of type double: mileEndingPoint , mil

eStartingPoint , and speed . The first two parameters indicate the mile markers on an interstate at which a vehicle goes to and starts at; the third parameter indicates the speed of the vehicle in miles per hour. The function returns the number of hours it takes a vehicle to go from the starting mile marker to the ending one. The function has a default value for the speed: 55 miles per hour, and a default value for mileStartingPoint : 0.0.
Computers and Technology
1 answer:
dybincka [34]4 years ago
6 0

Answer:double timeOnHighway (double mileEndingPoint, double mileStartingPoint = 0.0, double speed = 55.0)

return (mileEndingPoint - mileStartingPoint) / speed

Explanation:

You might be interested in
Use the drop-down menu to correctly identify the numbering system.
jeka94

This numbering system uses 8 symbols: octal number

This numbering system uses 0 and 1: binary number

This numbering system uses 16 symbols: hexadecimal

This numbering system uses 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9: decimal number system

This numbering system uses 2 symbols: binary number system

This numbering system uses 10 symbols:   decimal number system

This numbering system uses numbers and letters:   hexadecimal number system

This numbering system uses 0, 1, 2, 3, 5, 6, and 7:   octal number system

4 0
3 years ago
Cameron wants to impress the owner of the company. He creates a graph that shows the improved productivity at the company over t
Umnica [9.8K]
Point, line, or bar graph is what he would use

6 0
3 years ago
Read 2 more answers
What is c also write it's features
Marina86 [1]

C is a language used to write complex programs.

4 0
3 years ago
Read 2 more answers
If(moreDate == true)
worty [1.4K]

it's either C or D I am pretty sure that the answer is D

5 0
3 years ago
List any three importance of computer​
Naddika [18.5K]

Answer:

here is the answer

Explanation:

1) accurate

2) fast

3) can accomplish tasks more effencily

5 0
3 years ago
Other questions:
  • Your friends parents are worried about going over their budget for the month. Which explains would you suggest is not a need.
    14·2 answers
  • How many inputs are included in the following requirement? REQUIREMENT: Write a program that asks the employee for their age. Th
    6·1 answer
  • Which part of the os provides users and applications with an interface to manipulate files?
    8·1 answer
  • Ipv6 includes a native information security framework (ipsec) that provides both data and control packets. true false
    15·1 answer
  • Which vendor certification would you think is the most relevant in the field of IT security? Why?
    7·1 answer
  • Problems of mobile phones
    8·1 answer
  • [c++] Write a recursive function takes a word string as input argument and reverse the word. Print out the results of recursive
    14·1 answer
  • You just settled in for some study time at the local coffee shop, and you pause long enough to connect your smartphone to the Wi
    7·1 answer
  • What is the full meaning of Internet and WiFi
    6·2 answers
  • Develop an algorithm to print the names of the candidates who should receive a refund. A refund is due if the candidate's votes
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!