SSL Certificate
  • Write a C program that will read wind speeds in miles
Write a C program that will read wind speeds in miles per hour from the input file called wind_speed.  After reading a wind speed the program will calculate the wind chill temperatures ranging from -40 °F to 40 °F in increments of 10 °F, and print the computed results in tabular form. The table will be printed to the computer screen and to an output file called wind_chill_table.

The equation to calculate wind chill is:

wind chill=35.74+0.6215temp-35.75?speed?^(0.16)+0.4275temp*?speed?^(0.16)

where temp is temperature (°F) and speed is wind speed (mph).  Use the power function in the equation when a variable needs to be raised to a power.  To aid program development a partial flow chart of the loop structures is provided on page 4.

When reading data from the input data file you must provide an error trapping option to stop the program.  Thus, your program must have an “if” structure that will verify the input file.  If the input file does not exist, or cannot be found, or is empty, the following message must be printed to the computer screen only:

Error opening input file.
Program terminated.

Since the output format for the computer screen will be different then what will be printed to the output file, use the output file as your final basis for the formatting of the printf and fprintf functions.  The output file format is shown below.  To keep everyone on the same page for the output file formatting, set Notepad’s font by selecting:

Format, Font, Courier New, Bold, 12, Western


OUTPUT FILE FORMAT:

NOTE: Table formatting, as seen above, will be graded heavily.


FILE PATHS:
Once you have your program working correctly, and before submitting, make sure that you set your file paths as follows:

#define ????? “u:\\engr 200\\wind_speed.txt”

#define ????? “u:\\engr 200\\wind_chill_table.txt”
In both cases the ????? are the variable names that you have used in your program.

Excellent Solution
================
*Instant Download

Write a review

Please login or register to review

Write a C program that will read wind speeds in miles

  • $9.99


*All your data are SECURED & ENCRYPTED using a valid, trusted server certificate (Comodo SSL) and we don't store credit card information on our servers and all Payments are SECURED & handled by Paypal.
SSL CertificatePaypal

Tags: c, wind, speeds, wind_speed, wind chill temperatures, programming