Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

can anyone help me create this ? Create a C++ IPO program (from scratch) in the

ID: 3883178 • Letter: C

Question

can anyone help me create this ?

Create a C++ IPO program (from scratch) in the file named p1.cpp. The program calculates the "wind-chill" (W) or "feels-like" temperature given the wind speed (v) in miles per hour and the temperature (t) in Fahrenheit. Your program should use the "old" wind-chill formula: W = 0.0817(3.71 squareroot v + 5.81 - 0.25v)(t - 91.4) + 91.4 Here is what the output of your program should look like running in the editor: Notice that this problem includes escape sequences as well as math functions. You'll need to use the squareroot () functions. Don't forget any headers.

Explanation / Answer

#include <iostream>
#include <cmath>
#include <iomanip>
#include<string>

using namespace std;

int main()
{

// initial define variable following
double temperature;
double wind_speed;
double Wind_Chill;

cout<<"Gibert Stephen: Wind Chill Calculator" <<endl;

// to print "\"/"""/"""/"""/"""/"""/"""/"""/""/
cout<< ""22" "\" ""22" "/" ""22" ""22" "\" ""22" "/" ""22" ""22" "\" ""22" "/" ""22" ""22" "\"
""22" "/" ""22" ""22" "\" ""22" "/" ""22" ""22" "\" ""22" "/" ""22" ""22" "\" ""22" "/" ""22" ""22" "\" ""22" "/" ;

//blank line
cout<<endl;
cout <<"Enter the Temperature in Fahrenheit : ";
cin>>temperature;
cout<<"Enter the wind speed in mile-per-hour : ";
cin>>wind_speed;


// formula given
Wind_Chill= 0.0817*(3.71*sqrt(wind_speed)+5.81-(0.25*wind_speed))*(temperature-91.4)+91.4;

//setprecision is used to print up to 3 decimal
cout << fixed;
cout<<endl;////blank line
cout<<setprecision(3)<<"Wind Chill : ["<<Wind_Chill<<"]"; //print wind chill value
cout<< endl<<"------------END of Program-------------";
return 0;
}

-------------------------------------------------------

output sample:-

Gibert Stephen: Wind Chill Calculator
""/"""/"""/"""/"""/"""/"""/"""/
Enter the Temperature in Fahrenheit : 0.0
Enter the wind speed in mile-per-hour : 12.0

Wind Chill : [-25.553]
------------END of Program-------------

---------------------------------------------------------------------------------------------

If you have any query, please feel free to ask.

Thanks a lot.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote