Anonymous
Anonymous asked in Computers & InternetProgramming & Design · 3 weeks ago

C++ Question?

Can you guys explain the purpose, the inputs, calculations, the output, and an example of how to call it of the function below?

void input();

void menu();

void print();

float hours(float miles, int speed);

float cost(float hours. float costPerHour);

float fares (int pass, float price);

float profit (float fares, float cost);

Thank you!

Update:

and 

float costPerPass (float cost, int pass)

1 Answer

Relevance
  • 3 weeks 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.

Still have questions? Get your answers by asking now.