Please Solve Coral Programming Language Everything Indented Way Supposed Leave Proper Inst Q43838774
Please solve this in Coral programming language ONLY andeverything is indented the way it is supposed to be, or leaveproper instructions on how!!!! No other programming languages!!!Thank you…

11.2 User-Defined Functions: Driving cost CHALLENGE ACTIVITY 11.2.1: Driving cost-functions. Start Write a function Driving Cost with parameters driven Miles, milesPer Gallon, and dollarsPerGallon, that returns the dollar cost to drive those miles. All items are of type float. Ex: If the function is called with 50 20.0 3.1599, the function returns 7.89975. Define that function in a program whose inputs are the car’s miles/gallon and the gas dollars/gallon (both floats). Output the gas cost for 10 miles, 50 miles, and 400 miles, by calling your Driving Cost function three times. Ex: If the input is 20.03.1599, the output is: 1.57995 7.89975 63.198 Note: Small expression differences can yield small floating-point output differences due to computer rounding. Ex: (a + b)/3.0 is the same as a/3.0 + b/3.0 but output may differ slightly. Because our system tests programs by comparing output, please obey the following when writing your expression for this problem. In the Driving Cost function, use the variables in the following order to calculate the cost: driven Miles, milesPerGallon, dollars Per Gallon. Variables // Your solution goes here Not shown when editing Show transcribed image text 11.2 User-Defined Functions: Driving cost CHALLENGE ACTIVITY 11.2.1: Driving cost-functions. Start Write a function Driving Cost with parameters driven Miles, milesPer Gallon, and dollarsPerGallon, that returns the dollar cost to drive those miles. All items are of type float. Ex: If the function is called with 50 20.0 3.1599, the function returns 7.89975. Define that function in a program whose inputs are the car’s miles/gallon and the gas dollars/gallon (both floats). Output the gas cost for 10 miles, 50 miles, and 400 miles, by calling your Driving Cost function three times. Ex: If the input is 20.03.1599, the output is: 1.57995 7.89975 63.198 Note: Small expression differences can yield small floating-point output differences due to computer rounding. Ex: (a + b)/3.0 is the same as a/3.0 + b/3.0 but output may differ slightly. Because our system tests programs by comparing output, please obey the following when writing your expression for this problem. In the Driving Cost function, use the variables in the following order to calculate the cost: driven Miles, milesPerGallon, dollars Per Gallon. Variables // Your solution goes here Not shown when editing
Expert Answer
Answer to Please solve this in Coral programming language ONLY and everything is indented the way it is supposed to be, or leave p…
OR