diff options
Diffstat (limited to 'Lab 2.cpp')
| -rw-r--r-- | Lab 2.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Lab 2.cpp b/Lab 2.cpp new file mode 100644 index 0000000..301b0fe --- /dev/null +++ b/Lab 2.cpp @@ -0,0 +1,33 @@ +// Lab 2.cpp : This file contains the 'main' function. Program execution begins and ends there.
+//
+
+#include <iostream>
+using std::cout;
+using std::cin;
+using namespace std;
+
+int main()
+{
+ float WindSpeed;
+ float FTemp;
+ float WindChill;
+
+ cout << "Please enter the wind speed in MPH ->>";
+ cin >> WindSpeed;
+
+ cout << "Please enter the temperature in Fahrenheit ->>";
+ cin >> FTemp;
+
+ WindChill = (35.74 +(0.6215 * FTemp)) - (35.75*( WindSpeed ^ 0.16)) + (0.4275 * FTemp) * (WindSpeed ^ 0.16);
+
+ cout << "The wind speed you entered is ->>" << WindSpeed;
+ cout << "The temperature you entered is ->>" << FTemp;
+ cout << "The wind chill is ->>" << WindChill;
+
+
+
+
+
+
+}
+
|