Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

#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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Application And Administration

Authors: Michael Mannino, Michael V. Mannino

2nd Edition

0072880678, 9780072880670

More Books

Students also viewed these Databases questions

Question

Advance warning and an explanation for the layoff.

Answered: 1 week ago