Question: Ask the user for the number of elements to be stored in an array of type double. Use dynamic allocation to store the amount of
Ask the user for the number of elements to be stored in an array of type double. Use dynamic allocation to
store the amount of memory required based on the user input. Each element of the array represents a
temperature measurement. Using a while loop to initialize each element of the allocated memory to a
value between
Create a user defined function UDF which is passed the pointer variable to the dynamica allocated
memory. Indie the UDF print the maximum temperature value, the avg temperature, and minimum
temperature.
Test Data:
Input: size
Array:
Output:
The maximum temperature is fahrenheit
The minimum temperature is fahrenheit
The average temperature is fahrenheit
Write in C and show code please
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
