Question: use r studio to finish 1. Write a function to calculate miles per gallon given kilometres travelled, and litres of gasonline used The function should

use r studio to finish

use r studio to finish 1. Write a function to calculate milesper gallon given kilometres travelled, and litres of gasonline used The functionshould have two arguments, litres and kilometres, and should return the mileage

1. Write a function to calculate miles per gallon given kilometres travelled, and litres of gasonline used The function should have two arguments, litres and kilometres, and should return the mileage in mpg #mpg-function( arguments here){ #mpg #return (mpg) Test your function using input values of 100 kilometres and 8.3 litres 2. The roots of the quadratic ax2 + bx + c are given by If b2 - 4ac

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!