subject
Engineering, 13.11.2019 22:31 maddison788

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

ansver
Answers: 3

Another question on Engineering

question
Engineering, 03.07.2019 14:10
Line joining liquid phase with liquid and solid phase mixture is known as: a) liquidus b) solidus c) tie line d) none of the mentioned
Answers: 2
question
Engineering, 04.07.2019 18:10
Coiled springs ought to be very strong and stiff. si3n4 is a strong, stiff material. would you select this material for a spring? explain.
Answers: 2
question
Engineering, 04.07.2019 18:10
Carbon dioxide gas expands isotherm a turbine from 1 mpa, 500 k at 200 kpa. assuming the ideal gas model and neglecting the kinetic and potential energies, determine the change in entropy, heat transfer and work for each kilogram of co2.
Answers: 2
question
Engineering, 04.07.2019 18:20
What is the heat treatment of metals? what is the benefit of it? why and how it's useful? answer in details, do not write by hand.
Answers: 3
You know the right answer?
Write a function called checkfactor that takes two arrays of positive numbers, firstnumberrow and se...
Questions
question
Mathematics, 01.08.2021 14:00
question
Mathematics, 01.08.2021 14:00
question
Mathematics, 01.08.2021 14:00
question
Chemistry, 01.08.2021 14:00
question
English, 01.08.2021 14:00
question
Mathematics, 01.08.2021 14:00