Computers and Technology
Computers and Technology, 17.09.2019 19:20, krojas015

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.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 12:00, kp2078
What type of slide show is a dynamic and eye-catching way to familiarize potential customers with what your company has to offer? a. ole b. photo album c. brochure d. office clipboard
Answers: 2
image
Computers and Technology, 23.06.2019 18:30, sawyerfauver
The computers in the sales department did not have enough data storage capacity to contain all the information the department needed to store, and it was taking a long time for team members to access the data they needed. to fix the problem, the technician installed new, larger hard drives on all the computers.
Answers: 1
image
Computers and Technology, 25.06.2019 07:50, hayleneolide
Identify an advantage of centralized processing
Answers: 1
image
Computers and Technology, 25.06.2019 09:30, Cxylaa
An output peripheral interacts with or sends data to the computer provides information to the user from the computer receives data from the computer and sends it to a modem stores data processed by the computer
Answers: 1
Do you know the correct answer?
Write a function called checkfactor that takes two arrays of positive numbers, firstnumberrow and se...

Questions in other subjects:

Konu
Mathematics, 13.11.2019 01:31