Hello! I am getting the error message: expression preceding parentheses of apparent call must have (pointer-to-) function type. I have marked the line that is giving me problems.
Line 18, what were you trying to do there? Get rid of it.
The output makes no sense.
Flowrate is unused.
Read the compiler output:
In function 'int main()':
18:10: warning: unused variable 'sqrt' [-Wunused-variable]
19:10: warning: variable 'Flowrate' set but not used [-Wunused-but-set-variable]
Just use a for-loop to cover P values between lower and upper bounds and, for each pass of the loop, output P (population in thousands) and Q (volume flow rate of water required for fire fighting).
I'd love to know what the units of Q are, and also why, when the city gets to a population of 10 million, you don't bother fighting fires any more!