Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started