When I build, I get this error message: There is no context in which this conversion is possible. Its the last structure I am having problems with. The miles and 5 are underlined. Please tell me what I need to change. Thanks in advance.
Simple- your print function requires three arguments- a matrix of two dimensions, an integer, and an array of strings. In your call to print, you pass to it a matrix of two dimensions, an array of strings, and an integer. In other words, in:
print(results, names, 5);
Switch names and 5 with each other. Actually... In the calculate function call, you have the same issue.