Can you guys explain the purpose, the inputs, calculations, the output, and an example of how to call it of the function below?
float hours(float miles, int speed);
float cost(float hours. float costPerHour);
float fares (int pass, float price);
float profit (float fares, float cost);
float costPerPass (float cost, int pass)
- Anonymous8 months ago
A = hours(1,2);
This function call defines A with the return value from hours() and the 2 values are sent to hours() as data to work with.