12345678910111213141516171819202122232425262728
#include <iostream> #include <cmath> using namespace std; int main() { double temp; double wind; double NWC; double OWC; cout << "Enter the current temperature in faherenheit \n"; cin >> temp; cout << "Enter the current wind speed in mph \n"; cin >> wind; NWC = 35.74 + 0.6215*temp - 35.75*(pow(wind, 0.16)) + 0.4275*temp*(pow(wind, 0.16)); NWC = round(NWC); OWC = .081*(3.71*sqrt(wind) + 5.81 - .25*wind)*(temp - 91.4) + 91.4; OWC = round(OWC); double Cels = (temp - 32)*(5 / 9); cout << "Temp:" << temp << " degrees Fahrenheit \n"; cout << "Temp:" << Celc << " Centigrade \n"; cout << "New wind chill formula:" << NWC << "\n"; cout << "Old wind chill formula:" << OWC << "\n"; }
double Cels = (temp - 32)*(5 / 9);
double Cels = (temp - 32)*(5.0 / 9.0);
double Cels = (temp - 32)*5.0 / 9.0;
float