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 0-120.
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 =5
Array: 1,2,3,4,5
Output:
The maximum temperature is 5 fahrenheit
The minimum temperature is 1 fahrenheit
The average temperature is 3 fahrenheit
Write in C and show code please
 Ask the user for the number of elements to be stored

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!