subject

Write a function called farecalc that computes the bus fare one must pay in lawrence transit based on the distance travelled. here is how the fare is calculated: the first mile is $3. each additional mile up to a total trip distance of 10 miles is 25 cents per mile. each additional mile over 10 miles is 10 cents per mile. miles are rounded to the nearest integer other than the first mile which must be paid in full once a journey begins. the input to the function would be the distance of the journey. return the fare in dollars

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:20
The reset circuit used on the four 3-bit counters analyzed in this activity reset the counts to zero (000). it makes sense for the up-counters to start at zero (000), but the down-counters should start at seven (111). what would you need to change so that the 3-bit binary down counter with j/k flip-flops you just created would reset to seven (111)?
Answers: 1
question
Computers and Technology, 22.06.2019 11:10
Which are not examples of chronic or persistent stress? moving
Answers: 1
question
Computers and Technology, 22.06.2019 23:00
Which type of tab stop is most for weights and measurements?
Answers: 1
question
Computers and Technology, 23.06.2019 05:20
What did creator markus “notch" persson initially call his game
Answers: 1
You know the right answer?
Write a function called farecalc that computes the bus fare one must pay in lawrence transit based o...
Questions
question
Mathematics, 27.01.2021 21:20
question
Mathematics, 27.01.2021 21:20
Questions on the website: 13722362