C++: Programming Problem - Convert to Seconds

Name: _________________________________

Write a function named toSeconds which takes three integer parameters, a number of hours, number of minutes, and number of seconds and returns the total number of seconds. The prototype should look like.

    int toSeconds(int hours, int minutes, int seconds);
As always, use good indentation and meaningful identifier names.

Sample output

For example,
    cout << toSeconds(0, 2, 15);
would print 135, the total number of seconds in 0 hours, 2 minutes and 15 seconds.