subject

Write a function called checkfactor that takes two arrays of positive numbers, firstnumberrow and secondnumberrow. checkfactor checks if the first entry in firstnumberrow is divisible by the first entry in secondnumberrow, and performs the same operation on the next array elements until all entries have been checked. all the numbers are positive and the number of entries in the arrays are the same. the function should return the identified divisible numbers in two row arrays named firstdivisible and seconddivisible. restrictions: branches or loops should not be used. the code must use the internal mod function. hint: the mod function should be used to determine if two numbers are divisible. ex: for num1 and num2 if mod(num1,num2) is 0, then the two numbers are divisible. ex: firstnumberrow =[5, 7, 8, 6, 3]; secondnumberrow = [7, 7, 2, 3, 5]; [firstdivisible, seconddivisible]=checkfactor(firstn umberrow, secondnumberrow) produces firstdivisible = 7 8 6 seconddivisible = 7 2 3 indicating that the second entries (the two 7s), the third entries (the 8 and the 2), and finally the fourth entries (the 6 and 3) are divisible positive integers.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
Which are examples of note-taking tools? check all that recording devices sticky notes digital highlighters paper flags highlighting pens digital displays digital flags
Answers: 1
question
Computers and Technology, 24.06.2019 04:30
Write and test a python program to find and print the largest number in a set of real (floating point) numbers. the program should first read a single positive integer number from the user, which will be how many numbers to read and search through. after reading in all of the numbers, the largest of the numbers input (not considering the count input) should be printed.
Answers: 1
question
Computers and Technology, 24.06.2019 11:30
Convert 11001110(acdd notation) into decimal
Answers: 2
question
Computers and Technology, 24.06.2019 15:30
Emma is using an artificial intelligence system, which contains information on botany, to identify a type of plant from an image. what type of ai is emma using?
Answers: 1
You know the right answer?
Write a function called checkfactor that takes two arrays of positive numbers, firstnumberrow and se...
Questions
question
History, 27.08.2021 14:00
question
Mathematics, 27.08.2021 14:00
question
Mathematics, 27.08.2021 14:00
Questions on the website: 13722363