Answered step by step
Verified Expert Solution
Question
1 Approved Answer
CSE 110 Introduction to Computer Science I CSE 110 - Weather Data Program (call-by-reference and void functions) Write a multi-file program for a meteorologist that
CSE 110 Introduction to Computer Science I CSE 110 - Weather Data Program (call-by-reference and void functions) 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 it multiple times without restarting the program. This loop should be in main. The program must have the following four (4) functions called from main and located in a header file: 1. A function for getting input (using pass-by-reference) a. temperature - double b. wind speed - double, must be greater than/equivalent to 0 c. dew point - double 2. A function to compute and return the wind chill temperature 3. A function to compute and return the cloud base 4. A function that produces the output formatted exactly as shown below (use setw(x) page 112 or (t) and include the introduction as shown below and notes as appropriate. Variables must be passed to functions, and cannot be global. Functions must be called from main. Use the cmath library for the power function...\#include The equation for approximating the wind chill factor in North America is: wc=35.74+0.6215Ta=35.75V+0.16+0.4275TaV+0.16 Where T is the air temperature in Fahrenheit V is the wind speed in mph In North America, wind chill temperature is defined only at or below 10.0C (50.0F), and wind speeds above 4.8 kilometers per hour (3.0mph). The program must check this, and output three (3) asterisks when the wind chill is invalid. The cloud base in feet above ground level utilizes the "temperature spread" which is the difference between the temperature and the dew point, and is calculated: cloudBase=temperaturespread/4.41000 If the cloud base altitude is
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started