I have one error for this code and I cannot find the solution, help would be so much appreciated. The error code is: error LNK2019: unresolved external symbol "float __cdecl calctotaltime(int,float)" (?calctotaltime@@YAMHM@Z) referenced in function _main
Your function definition doesn't match your prototype for the calctotaltime function.
First, the return type doesn't match. Then, look at the parameters. When you define it on line 10 and call it on line 23, the int parameter comes first, followed by the float parameter. When you define the function on line 41, you have the float parameter first instead of the int parameter. Fixing those will at least get you compiling.