From eef46bd9bdf728bf7b3bf5e028a1a2ba8578d266 Mon Sep 17 00:00:00 2001 From: matthewtaeza <114624219+matthewtaeza@users.noreply.github.com> Date: Tue, 8 Nov 2022 14:05:03 -0800 Subject: Add files via upload --- Lab 2.cpp | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Lab 2.cpp (limited to 'Lab 2.cpp') 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 +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; + + + + + + +} + -- cgit v1.2.3