Question: Write a C++ program: I have attached what I have done so far Have the wind speed go from 5 to 50 with a step

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

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. 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;

/*

*

*/

int main(int argc, char** argv)

{

double T=5.0;

double V=5.0;

double wc=35.74+0.6215*T-35.75*pow(V,0.16)+0.4275*T*pow(V,0.16);

cout

for (int r=1;r

{//top of outer loop

cout

for (int c=1; c

{//top of inner loop

cout

}//bottom of inner loop

cout

}//bottom of outer loop

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 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!