Write a program that find the maximum values stored in array


C Programming Assignment

Part 1: 1D Arrays, Pointers and user-defined functions

Write a program that will find and display to the monitor the minimum and maximum values stored in an array of size 10 and data type float. Allow the user to enter the values to be stored in the array. Use a function to find the maximum and minimum values, since the function returns two values the maximum and minimum values will need to be pointer variables.

HINT: use the following function prototype

void minmaxarray(float myArray[ ], int size, float *min, float *max);

Part 2: Files, pointers and user-defined functions

Write a program that will find and display to the monitor the minimum and maximum of the values that are stored in the data file "mydata.txt"(the file is found in blackboard). Use a function to find the maximum and minimum values, since the function returns two values the maximum and minimum values will need to be pointer variables.

HINT: use the following function prototype

void minmaxarray(float value, float *min, float *max);

Format your assignment according to the give formatting requirements:

• The answer must be using Times New Roman font (size 12), double spaced, typed, with one-inch margins on all sides.

• The response also includes a cover page containing the student's name, the title of the assignment, the course title, and the date. The cover page is not included in the required page length.

• Also include a reference page. The references and Citations should follow APA format. The reference page is not included in the required page length.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Write a program that find the maximum values stored in array
Reference No:- TGS03026018

Expected delivery within 24 Hours