Answered step by step
Verified Expert Solution
Question
1 Approved Answer
undefined 1:01 PM 30) F20_21_EENG112_Resit - Read-only Read Only - You can't save changes to this fil... Grup (12 Mavi Muw Read the following instruction
undefined
1:01 PM 30) F20_21_EENG112_Resit - Read-only Read Only - You can't save changes to this fil... Grup (12 Mavi Muw Read the following instruction Carcfully The exam denation is strictly 100 minutes You should submit your exam before the deadline in PDF fornut it will be not accepted or . Please answer each question on a protege It is wise to the last 10 minutes for submission Show all the men that you credit for Write your name surname and student number to the right-top corner of each answer page Please be sure that your unswers are readable and the photos are taken with good quality. Any other language rather than language will be not accepted. QI)Write a program that prints the following patter using Take the number of row clements using scanf and use for loops to generate the pattern. The sample pattern for 4 row elements is shown below. (Hint: Use double nested for loops) Q2) a) Write a function to calculate standard deviation of the pointer input argument, b) Write a function to sort pointer argument in descending order based on the remainder of three and print them. (for the input 19.7.1.5) after sorting (5.1.7.9)) c) Write a complete program to calculate the standard deviation and sort the data inside the array using the functions defined above. The program will ask to the user to enter the size of the way and then will take the numbers to the array using scanf for the entered size. After creating the array, call the functions defined in a) and b) and give the array to the functions as an input Standard Deviation MC[0-mean Note: Use pointer definition for the functions. The array definition inside the functions will be not accepted. 03) a) Write a function to multiply two matrices as shown below and print the result. b) Write a function to find and print the prime numbers (numbers only divisible by themselves and I) from the final matrix. e/Write a complete program to perform matrix multiplication and detect the prime numbers after the multiplication using the functions defined above. Define two matrices with size of each one is two by two (using two-dimensional array) and generate the elements of the matrices between 0 and 9 using the rand function. Finally, call the functions defined above and give the arrays as an input to these functions to perform the given tasks 521 Hint: matrix multiplication: 24" - la3.b1 +04.13 43-52 +4.bil fal. 51 + a2. h3 al.b2 +02.541 OStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started