Question: Write a C++ program: I have attached what I have done so far and cannot figure out how to put it in an array before

Write a C++ program: I have attached what I have done so far and cannot figure out how to put it in an array before printing to the screen.

Have the wind speed go from 5 to 50 with a step of 5. Have the temperature go from 5 to 50 with a step of 5. Use a nested for loop. Print out your table as whole numbers, no decimals to the screen. Store your calculations in an array before printing them to the screen. Use an outer and an inner loop for the temperature and wind speed. It does not matter which one is the outer loop and which one is the inner loop. Make sure you increment each loop by a step of 5. The chart should look similar to the one below. Also, send your table to an HTML file.

Write a C++ program: I have attached what I have done so

#include //to use cout and cin and endl// allows using cout without std::cout #include // to use string data type #include //to use strlen, strcmp, strcpy #include //for pow function,sqrt,abs #include // for set precision, setw, #include //for file input #include // to use assert to disable place before #define NDEBUG #include //for random numbers, exit function #include //time function used for rand seed #include // for toupper, tolower #include #include #include #include #include //Windchill using namespace std;

/* * */ double calcWind(double temperature, double windSpeed) { double wind = 0; wind = 35.74 + (.621 * temperature) - (35.75 * pow(windSpeed, 0.16)) + (.4275 * temperature * pow(windSpeed, .16)); cout

int main(int argc, char** argv) { for (int rows = 5; rows

for (int columns = 5; columns

return 0; }

Temperature (OF) 10 10 -15 10 25 -5 11 16-22-28 34 -40 -4-10-16-22-28-35-41-47 -13 19 26 32 39 45 51 17 11 4-2-9-15 -22-29-35-42-48-55 30 25 20 15 5 25 19 137 10 21 15 9 3 -4 10 16 15 19 13 6 0 7 3 20 25 16 9 3 4 -11 -17 -24 31 -37 44 -51 58 16 9 3411 17243137-44-51 -58 15 8 1-5 12 -19 -2633-39-46 53-60 14 7 07 14 -21-27 34 -41 4855-62 13 61-8-15 22 2936 43 50 5764 45 12 5 -2 9-16 -23 -30 -37 44 -5158 -65 12 4-3-10-17 -24-31-38-45-52-60-67 11 4 -3 -11 18 -25-32 39 46 54-6168 0 15 8 1 -5 30 35 40 50 60 10 3 4 11 19

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!