Anonymous asked in Computers & InternetProgramming & Design · 8 months 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!



float costPerPass (float cost, int pass)

1 Answer

  • Anonymous
    8 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.

    • Commenter avatarLogin to reply the answers
Still have questions? Get your answers by asking now.