Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Array, CString, Input/Output Files, Functions using C language Given input and output files as follows: In File.txt 1 CooWD 3.2 5.4 -2.3 7.5 -1.3 7.3

Array, CString, Input/Output Files, Functions using C language

image text in transcribed

Given input and output files as follows: In File.txt 1 CooWD 3.2 5.4 -2.3 7.5 -1.3 7.3 6.1 -5.4 1.7 2.2 -4.3 3.1 150 202 443 226 100 305 248 112 576 649 231 344 9 10 11 12 Outfile.txt Month Average Temperature Total Rain Jan Feb Mac Apr May Jun Jul Aug Sep Oct Nov Dis 3.2 Celcius 5.4 Celcius -2.3 Celcius 7.5 Celcius -1.3 Celcius 7.3 Celcius 6.1 Celcius -5.4 Celcius 1.7 Celcius 2.2 Celcius -4.3 Celcius 3.1 Celcius 150 mm 202 mm 443 mm 226 mm 100 mm 305 mm 248 mm 112 mm 576 mm 649 mm 231 mm 344 mm Highest Total Rain is in Oct : 649 mm Lowest Total Rain is in May : 100 mm There are 2 months which Average Temperature more than 6 Celcius There are 4 months which negative Average Temperature Write a complete program that read 12 data set for month (int), average_temperature (double) and total_rain (int) from input file, then produce an output file. The program should be able to do the following tasks: i) Get the name of the month that have highest and lowest of total_rain together the values. ii) Get the number of months with average_temperature greater than 6 Celcius iii) Get the number of months with negative average_temperature Your program should have at least two (2) user/programmer defined functions to do above tasks

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

DB2 Universal Database V7.1 Application Development Certification Guide

Authors: Steve Sanyal, David Martineau, Kevin Gashyna, Michael Kyprianou

1st Edition

0130913677, 978-0130913678

More Books

Students also viewed these Databases questions