Question: Write a complete C program, that contains the declaration of a 4x6 matrix (4 rows and 6 columns) of float numbers. Name the matrix M.

Write a complete C program, that contains the declaration of a 4x6 matrix (4 rows and 6 columns) of float numbers. Name the matrix M. You must use appropriate loops for every part of the following matrix processing steps. Fill-out the first row of the matrix with user inputs. Fill-out the second row of the matrix with 6 random float numbers between - 8.0 and 8.0 (both inclusive). Fill-out the third row of the matrix with multiplication of the first and the second rows, element-by- element. For the fourth row, if the corresponding element in the third row is negative, the element will be -1.0, if the corresponding element in the third row is zero, the element will be 0.0, otherwise, the element will be 1.0. Print the filled-out matrix on the screen, row-by-row. M . Inputs from user Random float numbers First row x Second row -1.0, 0.0, or 1 depending on the third row
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
