Question: pls give me answers quickly need matlab codes Question 3 i. Write a program to generate the 1* n of Fibonacci numbers, and calculate how

 pls give me answers quickly need matlab codes Question 3 i.

pls give me answers quickly need matlab codes

Question 3 i. Write a program to generate the 1* n of Fibonacci numbers, and calculate how many of them are even. n is given by the user. Note: Fibonacci numbers are the numbers in a sequence in which the first two elements are 0 and 1, and the value of each subsequent element is the sum of the previous two elements. Use the program to find the 1" ten Fibonacci numbers and calculate how many of them are even. Note: consider zero as an even number. (9 Marks) ii. Write a program to create an n xm matrix with the elements that have the following values. The value of each element in the 1" row is the square (to the 2nd power) of its column number. The value of each element in the 1 column is the square (to the 2nd power) of its row number. The rest of the elements each has a value equal to the modulus of the difference of the element above it and the element left to it. When executed the program asks the user to enter values for n and m. Use the program to compute the output of a 4 x 4 matrix. (9 Marks) iii. Write a program using a loop to find the smallest even integer that is divisible by 13 and whose square root is greater than 120. The loop should start from 0 and stop when the number is found. (7 Marks) (Total 25 Marks)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!