Discover a world of knowledge at Westonci.ca, where experts and enthusiasts come together to answer your questions. Explore a wealth of knowledge from professionals across various disciplines on our comprehensive Q&A platform. Get precise and detailed answers to your questions from a knowledgeable community of experts on our Q&A 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.

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
We hope you found this helpful. Feel free to come back anytime for more accurate answers and updated information. We hope you found this helpful. Feel free to come back anytime for more accurate answers and updated information. Thank you for trusting Westonci.ca. Don't forget to revisit us for more accurate and insightful answers.