Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

TEMPERATURE ANALYSIS (C Language Program Problem) NOT C++ (input output files, if structures, for loops, two dimensional array, one dimensional character array) Could someone write

TEMPERATURE ANALYSIS (C Language Program Problem) NOT C++ (input output files, if structures, for loops, two dimensional array, one dimensional character array)

Could someone write this code in C language Using; input/output files, if structures, for loops, two-dimensional array, one-dimensional character array.

Attached is all the information you will need to complete the code including the input data file "temp.txt".

I also added a picture of the input data file and made it so you can just copy and past it into a .txt file for the program.

Thank you so much!

image text in transcribed

image text in transcribed

image text in transcribed

***** Here is the same input data file data but its text so you can copy and past it.***********

Centerville-Temperature 12 5 10.8 4.6 16.2 13.35 14.95 12.65 4.7 7.9 23.8 24.35 17.25 22.45 33.6 38.35 29.65 33.85 40.35 47.15 43.85 45.65 57.6 57 55 60.6 57 67.55 67.2 67.15 68.8 67.85 71.75 69.4 72.55 71.85 72.1 70.95 69.3 69.45 70.25 66.8 63.45 60.85 65.6 62.7 61.95 44.8 48.45 50.8 49.35 47.5 23.3 22.95 36.3 41.8 28.4 4.2 21.2 23.2 16.15 14.45

NGR 200 FALL 2018 P8: TEMPERATURE ANALYSIS (input/output files, if structures, for loops, two-dimensional array, one- dimensional character array) DUE: November 19, 2018 by 11:59 p.m. CT (final deadline) POINTS: 70 INTRODUCTION You are working on development of a new power plant for Centerville, USA. Average monthly temperature data has been collected as part of designing the new power plant, and you are required to develop a computer program that will perform averaging analysis. The input data file is called temp. As you examine the input file, you notice that the first record line is the name of the city and type of data, the second record line contains the control numbers, and the remaining record lines are the average monthly temperatures: 12 rows (January December) and 5 years (2013 - 2017) ASSIGNMENT Write a C program that will read the data from the input file, such that the city name and type of data are stored in a one-dimensional character array, and the temperatures are store in a two-dimensional array. Manipulate the two-dimensiona temperature for each year. Then find the minimum and maximum temperatures and the locations in the array of the minimum and maximum values 1 array to calculate the average temperature for each year and the standard deviation in The formula for standard deviation is where s is the standard deviation, x is the individual sample values, x 1s the mean value, is the summation, and n-1 is the number of values in the sample minus 1. In this case, n is 12 (number of months in the year) and x is the yearly average temperature Print the output to the computer screen and to an output file called temp.report. Illustrated below is the output style for the computer screen and the output file

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

Beyond Big Data Using Social MDM To Drive Deep Customer Insight

Authors: Martin Oberhofer, Eberhard Hechler

1st Edition

0133509796, 9780133509793

More Books

Students also viewed these Databases questions

Question

What are the Five Phases of SDLC? Explain each briefly.

Answered: 1 week ago

Question

How can Change Control Procedures manage Project Creep?

Answered: 1 week ago