diff options
| author | matthewtaeza <[email protected]> | 2022-11-08 14:05:03 -0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-11-08 14:05:03 -0800 |
| commit | eef46bd9bdf728bf7b3bf5e028a1a2ba8578d266 (patch) | |
| tree | 82b4ec941f8edd41c7d098f45b94bbbceddd9f11 /Lab 2.cpp | |
| parent | Setting up GitHub Classroom Feedback (diff) | |
| download | cst116-lab2-matthewtaeza-eef46bd9bdf728bf7b3bf5e028a1a2ba8578d266.tar.xz cst116-lab2-matthewtaeza-eef46bd9bdf728bf7b3bf5e028a1a2ba8578d266.zip | |
Add files via upload
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;
+
+
+
+
+
+
+}
+
|