Can someone help me on the output the output is suppose to be -20. I also want the current temperature to stay 11. I am stuck in this two parts.
During winter when it is very cold, typically, everyone would like to know the windchill factor, especially, before going out. Meteorologists use the following formula to compute the windchill factor, W:
W = 35.74 + 0.6215 * T-35.75*V0.16 + 0.4275 * T *V0.16,
I think you will need to include two extra headers to make this compile for a strict compiler:
cstdlib (for system()) and cmath (for pow()).
It isn't critical but:
- you are putting essentially the same temperature in twice - you don't need this.
- consider using a reference parameter (use &) in the definition of input1 - it will save having to use all those pointer symbols; see: http://www.cplusplus.com/doc/tutorial/functions/
- for tidiness' sake get line 57 to output a new line at the end.