Westonci.ca connects you with experts who provide insightful answers to your questions. Join us today and start learning! Experience the ease of finding accurate answers to your questions from a knowledgeable community of professionals. Experience the ease of finding precise answers to your questions from a knowledgeable community of experts.

Write a function DrivingCost with input parameters drivenMiles, milesPerGallon, and dollarsPerGallon, that returns the dollar cost to drive those miles. 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 DrivingCost function three times.