The code below is currently unfinished. It's eventually going to calculate tuition via how many credits you are taking. My problem is that when I try to build and run my code, I seem to get an error in the main function when I call COMPUTE_CHARGES and I can't figure out why. It apparently has something to do with the "double credits" but I'm not sure what it could be exactly.
COMPUTE_CHARGES should be passed a value of type double. but not the words "double credits" declared in the prototype above main() and the function below main().
get_credits should probably return a value to main of "credits" and then passed to compute_charges.
return credits;
and
then compute_charges(credits);
also, main() is an integer function, so should have a value returned.
after
display_header();
get_credits();
compute_charges();
return 0; // 0 equals no error
get_credits(); and compute_charges(); are type 'double' and should return values.