summaryrefslogtreecommitdiff
path: root/Lab 2.cpp
blob: 301b0fe4b4c6b3da6932b4025740aad258dc98d8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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;






}