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



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
Get step-by-step solutions from verified subject matter experts
