Go Back   CodingForums.com > :: Computing & Sciences > Computer Programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-19-2013, 11:00 PM   PM User | #1
Scevus
New to the CF scene

 
Join Date: Feb 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Scevus is an unknown quantity at this point
I need help ASAP

We have to make a program that computes Wind Chill here is my code. I need help fixing it.

#include <iostream>
using namespace std;
int main()

{
double F; //F is Farenheit Temperature

double WS; //WS is Wind Speed

double WC = 35.74 + 0.6215F - 35.75WS.16 + 0.4275FWS.16; //WC is Wind Chill

cout << "Please enter Temperature in Farenheit:";

cin >> F;

cout << "Please enter Wind Speed in mph";

cin >> WS;

if ( F >= -58 && F <= 41 || WS >= 2 );

cout << "Your Wind Chill in Farenheit is:" << WC;

else
cout << "One or more of your numbers inputed is invalid. Make sure your temperature is between -58 and 41 and your wind speed is greater than or equal to 2";

system ("Pause");

return 0;

}
Scevus is offline   Reply With Quote
Reply

Bookmarks

Tags
c++, wind chill

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:42 PM.


Advertisement
Log in to turn off these ads.