Westonci.ca is your go-to source for answers, with a community ready to provide accurate and timely information. Connect with a community of experts ready to help you find solutions to your questions quickly and accurately. Our platform offers a seamless experience for finding reliable answers from a network of knowledgeable professionals.

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.

Sagot :

Answer:

the brainly thing is saying that i can't put the answer so i screenshotted it and put it down below

Explanation:

View image YulTheNinja