Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

INTRODUCTION You are working for the National Park Service at Theodore Roosevelt National Park. Data has been collected dealing with daily snowfall amounts for the

image text in transcribed

image text in transcribed

image text in transcribed

INTRODUCTION You are working for the National Park Service at Theodore Roosevelt National Park. Data has been collected dealing with daily snowfall amounts for the park as part of advertising to the public, and you are required to develop a computer program that will perform snowfall averaging analysis. The input data file is called snowfall. As you examine the input file, you notice that the first record line is the name of the park and type of data, the second record line contains the control numbers, and the remaining record lines are the snowfall amounts: 4 rows (four weeks in January) and 7 days. 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 Manipulate the two-dimensional array to calculate the total snowfall for the month, the average snowfall for the month and the average snowfall for each day of the week. Then find the minimum and maximum snowfalls and the locations in the array of the minimum and maximum values (finding the first instance of each is OK) Finally, count how many days with above-average snowfall occur (use average snowfall for the month to determine this) and the snowfall amounts are stored in a two-dimensional array Print the output to the computer screen and to an output file called snowfall report. Illustrated below is the output style for the computer screen and the output file OUTPUT FORMAT: TheodoreRooseveltNationalPark-Snowfall Dayl Day Day3 Day4 Day5 Day6 Day7 Week 1 x.xx x. xx x.xx x.xx x.xx x.xx x.xx Week 2 . Week 3 . Week 4. REPORT SUMMARY: Minimum snowfall is x.xx inches in week xx, day x Maximum snowfall is x.xx inches in week xx, day x. There are xx days with above-average snowfall

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 Management With Website Development Applications

Authors: Greg Riccardi

1st Edition

0201743876, 978-0201743876

More Books

Students also viewed these Databases questions