Question: Question 3 Write a python function(s) based on the following definitions and descriptions. a) Write a Python function that computes the output of a quadratic

 Question 3 Write a python function(s) based on the following definitions

Question 3 Write a python function(s) based on the following definitions and descriptions. a) Write a Python function that computes the output of a quadratic equation when given a set of inputs and coefficients. The formula of a quadratic equation is y=ax2+bx+c, the function should accept two inputs, first the x values and secondly a list of coefficients. The function should return a list of y values. [ 10 marks ] Example function call: \[ \text { quadratic_func }([10,20,30,40,50],[2,3,4]) \] b) Write a function which reads a csv file from your computer's local disk containing a list of vehicle names (first column), vehicle types (second column) and the vehicles mpg value (third column), use this information to return the yearly tax cost associated with each vehicle. The following table sets out the vehicle tax prices: [ 10 marks ]

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!