Question: C++ programming ty so much for answering. 2-1. Write a function that given an array of integers and its length, will find the minimum (smallest)

C++ programming ty so much for answering.

C++ programming ty so much for answering. 2-1. Write a function that

2-1. Write a function that given an array of integers and its length, will find the minimum (smallest) number and return it. The function should return O if the size parameter, n, is less than 1. Signature: int minimum(int array[], int n) 2-2. Write a function that returns the maximum element in an integer array. The function should return O if the size parameter, n, is less than 1 Signature: int maximum(int array[], int n) 2-3. Write a function that given an array of integers and the length of the array, will count the amount of times the numbers 2, 5 and 9 appear using a switch statement. The function must print out your results on one line in the following form: 2% num-twos:5x num-fives:9:

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!