**Have**the**function ArrayChallenge(arr)**read the**array**of integers**stored in arr**which will be in the following format: [K, r1, r2, r3, ...] where K represents the**number**of desks in a classroom, and the rest of the integers in the**array**will be in sorted order and will represent the desks that are already occupied.All of the desks will be arranged in 2 columns, where desk #1- "
**Have****the****function****Array****Challenge(arr)****take****the****array****of****numbers****stored****in****array**and return the string "Arithmetic" if the sequence follows an arithmetic pattern or return "Geometric" if it follows a geometric pattern. If the sequence doesn't follow either pattern... - Problem: Using the Ruby language,
**have the function**ArrayAddition (**arr**)**take the array of numbers stored in arr**and return the string true if any combination**of numbers**in**the array**can be added up to equal the largest**number**in**the array**, otherwise return the string false.For example: if**arr**contains [4, 6, 23, 10, 1, 3] the output should .... Problem. There is a classroom which has M **Have**the**function**MeanMode(**arr**)**take**the**array**of**numbers stored in arr**and return 1 if the mode equals the mean, 0 if they don't equal each other (ie. [5, 3, 3, 3, 1] should return 1 because the mode (3) equals the mean (3)). The**array**will not be empty, will only contain positive integers, and will not contain more than one mode.**Have the function arraychallenge (arr) take the array of numbers stored in arr**and determine the total number of duplicate entries. for example if the input is (1, 2, 2, 2, 3) then your program should output 2 because there are two duplicates of one of the elements.??? 1 See answer Advertisement Advertisement hinamir980 is waiting for your help.