Question: in c++ please 1. In the main function, ask the user to enter 10 numbers and store them in an array. ( 15 points) 2.
1. In the main function, ask the user to enter 10 numbers and store them in an array. ( 15 points) 2. Define and test a function named InRange which receives an array, its size, and startRange, EndRange, as shown below, and returns true if all values in side array are in the given range, false otherwise. (15 points) bool InRange(int arrll, int size, int startRange, int endRange) This function should return true if all characters are the same character and return false otherwise. Examples: if the array contains the following elements, the function called with (a,10,1,15) should return true if the array contains the following elements, the function should return false. 3. Define and test a function named HasUnique, which checks that the array has unique values (no repeated values). This function should return true if all value are not repeated and return false otherwise. (15 points bool HasUnique (int arr , int size)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
