Write a multi-file program for a meteorologist that calculates the wind chill factor and cloud base altitude for the inputs temperature in Fahrenheit, wind speed in mph, and the dew point in Fahrenheit. Allow the user to run the program multiple times without having to restart the program and clear the console window between sessions using system (“CLS”) which requires the cstdlib library. The program must have the following four (4) functions called from main and located in a header file: 1. A function for getting input 2. A function to compute and return the wind chill 3. A function to compute and return the cloud base altitude 4. A function to produce the output The output will be formatted exactly as shown below (use setw(x)) with the introduction as shown and notes as appropriate. Variables shall not be declared globally. Variables must be passed by value when appropriate, and passed by reference when appropriate. All functions must be called from main. The equation for approximating the wind chill factor in North America is: wc = 35.74 + (0.6215 Ta ) – (35.75V+0.16 ) + 0.4275 Ta V+0.16 Where Ta is the air temperature in Fahrenheit V is the wind speed in mph (consider pow(windSpeed, 0.16)) Use the cmath library for the power function...#include Also, wind chill temperature is defined only at or below 10.0◦ C (50.0 ◦ F), and wind speeds above 4.8 kilometers per hour (3.0 mph). The program must check this and output asterisks when the wind chill would be invalid. See sample output below. The cloud base in feet above ground level utilizes the “temperature spread” which is the temperature minus the dew point. The cloud base altitude is calculated: cloudBase = (temperature spread / 4.4) * 1000 If the cloud base altitude computed is less than zero, the program should set it to zero. The cloud base altitude should not be below sea level.
Note: Could you plz go through this code and let me
know if u need any changes in this.Thank You
_________________
#include <iostream>
#include <string>
#include <cstdlib>
#include <cmath>
using namespace std;
void getInputs(double & tempF, double & wind_Velocity,
double & dewPointF);
double computeWindChill(double temp, double windV);
double calcCloudBaseAlt(double tempF, double dewPointF);
void outputResults(double wChillFactor, double cloudBaseAlt);
int main() {
//Declaring variables
double tempF = 0, wind_Velocity = 0;
double wChillFactor, cloudBaseAlt, dewPointF;
char ch;
while (true) {
getInputs(tempF, wind_Velocity, dewPointF);
wChillFactor = computeWindChill(tempF, wind_Velocity);
cloudBaseAlt = calcCloudBaseAlt(tempF, dewPointF);
outputResults(wChillFactor, cloudBaseAlt);
cout << "\nDo you Want to continue(Y/N):";
cin >> ch;
if (ch == 'y' || ch == 'Y') {
continue;
} else {
break;
}
system("CLS");
}
return 0;
}
//Function Implementation which calculates windchill
double computeWindChill(double temp, double windV) {
//Calculating the windchill
double windchill = 35.74 + (0.6125 * temp) - (35.75 * pow(windV,
0.16)) + (0.4275 * temp * pow(windV, 0.16));
return windchill;
}
void getInputs(double & tempF, double & wind_Velocity,
double & dewPointF) {
while (true) {
cout << "Enter Temperature (in F):";
cin >> tempF;
if (tempF >= 50) {
cout << "** Invalid.Must be less than 50F **" <<
endl;
} else
break;
}
while (true) {
cout << "Enter Wind velocity (in mph):";
cin >> wind_Velocity;
if (wind_Velocity < 3) {
cout << "** Invalid.Must be >=3.0 **" << endl;
} else
break;
}
cout << "Enter Dew point temperature (in F):";
cin >> dewPointF;
}
double calcCloudBaseAlt(double tempF, double dewPointF) {
return (tempF - dewPointF / 4.4) * 1000;
}
void outputResults(double wChillFactor, double cloudBaseAlt)
{
cout << "Wind Chill Factor :" << wChillFactor <<
endl;
cout << "Clound base altitude :" << cloudBaseAlt
<< endl;
}
____________________________
output:

_______________Could you plz rate me well.Thank
You
Write a multi-file program for a meteorologist that calculates the wind chill factor and cloud base...
Python3 Wind chill on a windy day, a temperature of 15 degrees may feel colder, perhaps it may feel like 7 degrees. The formula below calculates the "wind chill", indicating the temperature that is felt based on the actual temperature (t, in Fahrenheit) and wind speed (v, in miles per hour): w = 35.74 + 0.6215 t + (0.4275 t - 35.75) (v 0.16) Write a function windChill that takes two input arguments (t and v) and returns the wind...
Need to use Python string formatting to align wind-chill
values in equal-sized columns
Using your knowledge of loops and other Python features covered so far, write a program that prints a table of windchill values, where: Rows represent wind speed for O to 50 in 5 mph increments Columns represent temperatures from -20 to +60 in 10-degree increments Your program should include a function that returns windchill for a given combination of wind speed & temperature, using this formula from...
Please help in c++, follow the instructions, please. try to use pass by reference and pass by value if you could Description: Write a program that will input wind speed and temperature and output the wind-chill factor. W = 35.74 + 0.6215 ∗ T − 35.75 ∗ V 0.16 + 0.4275 ∗ T ∗ V 0.16 Your program should use at least 2 functions in addition to main. One that uses pass by reference parameters and prompts the user for...
Part A
Write a function windChillCalculator to determine the wind
chill. Your main function should take in user inputs for T (air
temperature) and V (wind speed) and pass these values as parameters
to your function. After your function calculates the wind chill it
should return it to main. To test your code, for T = 30.0 and V =
5.0, you should get a Wind Chill of 24.7268. Within your main
function, print the following cout statement: cout <<...
In C++ Code and Algorithm Please
Thanks:)
During winter when it is very cold, typically, everyone would
like to know the windchill factor, especially, before going out.
Meteorologists use the following formula to compute the windchill
factor, W:
Your program must contain at least two functions: one to get
the user input and the other to determine the windchill
factor.
The main function is not considered to be one of two functions.
That function is always included. Also, the functions...
This is for Python3. Why do the answers to these two conditions
differ? thank you very much!
Wind chill on a windy day, a temperature of 15 degrees may feel colder, perhaps it may feel like 7 degrees The formula below calculates the "wind chill", indicating the temperature that is felt based on the actual temperature (t, in Fahrenheit) and wind speed (v, in miles per hour): - 35.74+0.6215t+(0.4275 t-35.75) (v16 Write a function windChill that takes two input arguments...
i need help getting this program running
Pearson Sign in Mail - Josue Velazq... CSC 15 Chapter 4 lab This lab has two different problems. In this lab you are going to provide different options for the user to choose from Your program must provide the exact same output provided including "a" or "an". Requirements: You must use good style: meaningful variable names and good, consistent indentation All the I/O input/output) must be done in the run method. In addition...
Write a c++ program in that file to perform a “Search and Replace All” operation. This operation consists of performing a case-sensitive search for all occurrences of an arbitrary sequence of characters within a file and substituting another arbitrary sequence in place of them. Please note: One of the biggest problems some students have with this exercise occurs simply because they don’t read the command line information in the course document titled “Using the Compiler’s IDE”. Your program: 1. must...