Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c programming QUESTION 5 [20 MARKS] Your group is entrusted with a file, which contains 100,000 rows of data with two columns, where the first

c programming
image text in transcribed
QUESTION 5 [20 MARKS] Your group is entrusted with a file, which contains 100,000 rows of data with two columns, where the first column represents the temperature and the second column represents the Relative Humidity (RH). You are to write a code which has a main function which declares the array for the 2 parameters and pass them by reference to two different functions. The first function will calculate the maximum temperature and RH and return them separately by calling the same function twice. The second function will have to sort the temperature and RH data in the original array in a descending order. Both function are to have file scope with that of the main function. Only one defined constant and one global variable is permitted (a) Sketch the flowchart [6 Marks) (6) Write the complete functional code for the main function and two user defined functions by using arrays. [14 Marks)

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 Systems Designing And Building Business Applications

Authors: Gerald V. Post

1st Edition

0072898933, 978-0072898934

More Books

Students also viewed these Databases questions

Question

1. How is the newspaper help to our daily life?

Answered: 1 week ago

Question

1. Prepare a short profile of Mikhail Zoshchenko ?

Answered: 1 week ago

Question

What is psychology disorder?

Answered: 1 week ago

Question

3. Develop a case study.

Answered: 1 week ago