Function Name: putItTogetherInput: (double) A 1×16 vector of numbersOutput: (double) A 1×4 vector that is constructed from the input vector according to the instructions belowDescription: Write a function called puItTogether that divides the input vector into four 1×4 vectors. Your function then constructs the output vector in the following way.. The first value in the output vector should be the maximum value in the first fourth. The second value of the output vector should be the average of the values in the second fourth rounded to two decimal places. The third value of the output vector should be the second value of the third fourth when it is sorted in descending order. The fourth value in the output vector should be the number of values in the last fourth that are greater than 8. Return the output vector Examples: >> vec = [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16];>> a = putItTogether(vec)a = 1×4 4.0000 6.5000 11.0000 4.0000>> vec = [7 6 12 14 3 10 8 15 11 5 4 16 1 13 2 9]>> a = putItTogether(vec)a = 1×4 14 9 11 2>> vec = [4 5 13 10 14 8 6 12 16 3 15 9 7 1 11 2]>> a = putItTogether(vec)a = 1×4 13 10 15 1
Blog
Function Name: addTimes Input: (char) A vector of char…
Function Name: addTimes Input: (char) A vector of chars that represents an amount of time by showing the number of hours to the left of a colon and the number of minutes to the right of the colon. (char) A vector of chars that represents an amount of time by showing the number of hours to the left of a colon and the number of minutes to the right of the colon. Output: (char) A vector of chars that shows the sum of the two given times. Description: Write a function called addTimes that adds the two given time amounts and shows their sum total time in the following format. ‘hrs mins’ Notes: The in your output should not exceed 59. Multiples of 60 minutes should be counted as hours. Your inputs are vectors of chars NOT doubles. Your output is a vector of chars that contains digits. For your output, there is a space between the ‘s’ in ‘hrs’ and the number of minutes. Values that are less than 10 do not have leading zeros. Examples: >> aTime = ‘1:30’;>> bTime = ‘1:50’;>> a = addTimes(aTime, bTime)a = ‘3hrs 20mins’ >> aTime = ‘2:45’;>> bTime = ‘1:50’;>> a = addTimes(aTime, bTime)a = ‘4hrs 35mins’ >> aTime = ‘4:59’;>> bTime = ‘0:1’;>> a = addTimes(aTime, bTime)a = ‘5hrs 0mins’
Gene S controls the sharpness of spines in a type of cactus….
Gene S controls the sharpness of spines in a type of cactus. Cactuses with the dominant allele, S, have sharp spines, whereas homozygous recessive ss cactuses have dull spines. At the same time, a second gene, N, determines whether or not cactuses have spines. Homozygous recessive nn cactuses have no spines at all. A cross between a pure-breeding sharp-spined cactus and a pure-breeding spineless cactus would produce ________.
How many unique healthy gametes could be produced through in…
How many unique healthy gametes could be produced through independent assortment by an individual with the genotype AaBbCCDdEE?
In cats, black fur color is caused by an X-linked allele; th…
In cats, black fur color is caused by an X-linked allele; the other allele at this locus causes orange color. The heterozygote is tortoiseshell (cat with both orange and black patches). What kinds of offspring would you expect from the cross of a black female and an orange male?
The following pedigree is tracking dominantly inherited (aut…
The following pedigree is tracking dominantly inherited (autosomal) disease in the family. Affected individuals are indicated by a dark square or circle. What is the genotype of individual II-2? [genotype] What is the likelihood that the offspring of IV-3 and IV-4 will inherit the trait? [offspring]
Marfan syndrome in humans is caused by an abnormality of the…
Marfan syndrome in humans is caused by an abnormality of the connective tissue protein called fibrillin. Patients are usually very tall and thin with long spindly fingers and abnormal curvature of the spine. Marfan syndrome is also associated with ocular problems, and defects of the heart, nervous, and respiratory systems. Which of the following would you conclude about Marfan syndrome from the provided information?
In E. coli, you found a deleterious mutation in a gene calle…
In E. coli, you found a deleterious mutation in a gene called “dnaB” that codes for enzyme helicase. This mutation leads to a non-functional protein. Which of the following would you expect as a result of this?
Make sure you REVIEW your answers. Don’t leave anything blan…
Make sure you REVIEW your answers. Don’t leave anything blank! Make an educated guess if you are unsure. Double check your written answers. Did you include details, what you know from the course, and answer everything I have asked? Do you have enough information for the marks allotted? Thanks for the great semester everyone. Good luck in all future endeavours, and have a safe and happy summer! Ms.Reain
SECTION THREE: THIS SECTION HAS ONE EDITORIAL RESPONSE worth…
SECTION THREE: THIS SECTION HAS ONE EDITORIAL RESPONSE worth 15 marks. REMEMBER- AN EDITORIAL RESPONSE IS YOUR OPINION. You need to defend your opinion with course related evidence. Pay attention to the instructions, and if you have time, go back and proofread your work.