Question
Need help with this visual basic program. Output should look like the picture below. Program 1. Wind chill The wind chill factor uses the wind
Need help with this visual basic program. Output should look like the picture below.
Program 1. Wind chill
The wind chill factor uses the wind and the temperature to tell you how cold it feels. The formula to calculate wind chill uses the letter T to represent the temperature and Wind to represent the wind speed. The wind chill calculation is shown below:
Windchill = 35.74 + (0.6215 * T) (35.75 * Wind0.16 ) + (0.4275 * T * Wind0.16)
In this program, you are to prepare a chart that shows the wind chill factors for temperatures from -40 F to +40 F, and for wind speeds from 10 miles per hour (mph) to 50 mph. Use increments of 10 degrees and 10 miles per hour.
Notes:
You will need to use a nested For loop to create the output.
You should use a string variable to contain the output of the loops and the &= operator to append data to an existing line. There is an example on page 361 of the text.
Form1 Exit Clear the ListBox Calculate Wind Chill Wind Chill Factor rees F 10 30 40 50 -30 -10 Wind 40 21.25 33.64 46.04 65.5 -53.12 40.72 28.33 15.93 3.54 8.85 74.47 61.35 48.23 -35.1 22.00 8.88 4 80.19 -66.61 53.03 39.45 -25.86 -12.28 .30 14.88 28.46 42.04 84.48 -70.55 56.62 42.70 -28.77 14.84 0.91 13.02 26.9540.88 87.95 -73.74 59.53 45.32 31.11 -16.90 -2.69 11.52 25.73 39.93 10 4.24 17.36 30.48 43.60 30 40 50Step 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