Westonci.ca makes finding answers easy, with a community of experts ready to provide you with the information you seek. Join our Q&A platform and get accurate answers to all your questions from professionals across multiple disciplines. Experience the convenience of finding accurate answers to your questions from knowledgeable experts on our platform.

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.