Programming C
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);
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);
6 years ago
20
- 6L English
- ACC 421 Week 2 Individual Assignment -- Assignments from the Text
- stats help
- CJA 394 Week 3 DQ 1 and DQ 2
- BUS 352 Week 5 DQ 1 Payment online versus in person
- BSHS 452 Week 4 Day 5 TEAM DQ
- Exclusive for Sini04
- For this Assignment, you will apply the course material by answering the following questions in a 2-4 page, double-spaced paper....
- MM250 Unit 5 Assig
- Macroeconomics