Welcome to Westonci.ca, your one-stop destination for finding answers to all your questions. Join our expert community now! Explore comprehensive solutions to your questions from knowledgeable professionals across various fields on our platform. Our platform provides a seamless experience for finding reliable answers from a network of experienced 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