CPP Cafe

The Menu

 

Home -> Menu -> windchill

output

#include <iostream.h>
#include <stdlib.h>
// this will figure the windchill. this will tell how the weather actually feels.

const double factor = 1.5;
int main()
{
int chill;
int windspeed;
int temp;
int feels;

cout<<"Please enter the temperature outside."<<endl;
cin>> temp;
cout<<"Please enter the wind speed."<<endl;
cin>>windspeed;
feels = temp - factor * windspeed;
cout<<"The temperature feels like:"<<" "<<feels<<" "<<"degrees F."<<endl;
if(feels >=80){
cout<<"Sure is hot out there!"<<endl; }
else {
cout<<"Where long sleeves and pants."<<endl;
}

 

system("PAUSE");
return 0;
}