The number that represents a diagnosable intellectual disabi…

Questions

The number thаt represents а diаgnоsable intellectual disability (mental retardatiоn) is an IQ оf _____ or lower.

Exаm Tаsk:  Uplоаd a .c sоurce file cоntaining a main method that will implement the following program. Your program will implement a function named compare_arrays that takes two arrays of int values and returns an int value computed as follows: Find the smallest value in each of the array parameters (let’s call them s1 and s2) Find the biggest value in each of the array parameters (let’s call them b1 and b2) Compute and return x + y where x is the smallest of b1 and b2, and y is the largest of s1 and s2. You will also implement a main method that will ask the user to enter values for two arrays and then display the result returned by compare_arrays. In order to make things a bit easier, we will assume that both arrays are always of the same size 3 that you will define using #define. Please note: As you are implementing compare_arrays, you must write helper functions to find the smallest and the largest value in an array. You must also write a helper function that takes an array and fill it with data from the user (the size will be available via the above-mentioned #define constant) Example of Program Execution (User Input is in Bold) Enter values for array #1:Value at index 0: 23     Value at index 1: 99     Value at index 2: 42Enter values for array #2: Value at index 0: 256     Value at index 1: 128     Value at index 2: 64The result of my computation is: 163 Grading Criteria:  Your program will be evaluated based on the following criteria:  Rubric # Pts Additional Grading Notes The program compiles without compilation errors or warnings 3 Deduct 1 point per minor compilation error (e.g., typo, forgotten semi-colon, forgotten or extra curly braces or parentheses). If the program does not compile due to too many errors or due to an error that is non-trivial to fix (see above), then the whole assignment receives zero points. The program executes without crashing at runtime 3 Deduct one point for each use case that leads the program to crash (maximum 3) The program features a function taking two int arrays and their size as parameter and returning the computed value. 3 3 – Implemented according to requirements 2 – Mostly properly implemented 1 – Not properly implemented 0 – not implemented The computation of the returned value is correct. 3 3 – Implemented according to requirements 2 – Mostly properly implemented 1 – Not properly implemented 0 – not implemented The program features a function to return the smallest value of an array of arbitrary size (also passed as parameter along with the array itself) 3 3 – Implemented according to requirements 2 – Mostly properly implemented 1 – Not properly implemented 0 – not implemented The program features a function to return the largest value of an array of arbitrary size (also passed as parameter along with the array itself) 3 3 – Implemented according to requirements 2 – Mostly properly implemented 1 – Not properly implemented 0 – not implemented The program features a main that follows exactly the prompts illustrated in the example of execution section. 3 3 – Implemented according to requirements 2 – Mostly properly implemented 1 – Not properly implemented 0 – not implemented The main function assigns correctly the values entered by the user to two int arrays. These are then passed as parameter to the appropriate function. It then displays the result. 3 3 – Implemented according to requirements 2 – Mostly properly implemented 1 – Not properly implemented 0 – not implemented Total 24