Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

C programming in CodeBlocks, need the answers until wednesday

$
0
0

can someone please write the codes for these? Maybe if someone could reach out and explain it to me would be great. Thanks for the answers!

  1. Write a program that reads an input number of real values n (1 ≤ n ≤ 50). Find the lineits smallest element and insert it at the beginning of the line as a new member.
  2. Write a program that reads an input number of real values n (1 ≤ n ≤ 50). Find the largest element of the row and replace all corresponding values with multiples of k, where the value of k is entered from the keyboard.
  3. Write a program that reads the input M and N (1 ≤ M, N ≤ 50) integer elements into the M × N matrix. After that, it reads in a number k and then outputs the odd elements thatare divisible by k.
  4. Write a program that reads the input M and N (1 ≤ M, N ≤ 50) integer elements into the M × N matrix. After that, it reads in a number k and then outputs the odd elements thatare greater than k.
  5. Write a function that calculates the arithmetic mean of the rows of an MxN matrix. In the main program, read the elements of the MxN matrix, then call the function (with the matrix as an argument). The results are written in the function.
  6. Write a function that calculates the arithmetic mean of the columns of an MxN matrix. In the main program, read the elements of the MxN matrix, then call the function (with the matrix as an argument). The results are written in the function.
  7. Write a function that finds and prints the smallest elements of the rows of the MxN matrix and its location (index). In the main program, read the elements of the MxN matrix, then call the function (with the matrix as an argument). Write the results in the function.
  8. Write a function that finds and prints the largest elements of the columns of the MxN matrix and its location (index). In the main program, read the elements of the MxN matrix and then call itand the function (with the matrix as an argument). The results are written in the function.
  9. Write a function that determines the sum of two MxN matrices. In the main program, read the elements of the MxN matrices, then call the function. The results are written in the function.
  10. Write a program that creates an N x N matrix with the input N values (1 ≤ n ≤ 50) and fills it with data. Determine the smallest element below the side diagonal.
  11. Write a program that creates an N x N matrix with the input N values (1 ≤ n ≤ 50) and fills it with data. Determine the largest element above the main diagonal.

I haven't really tried them yet, I'm stuck and I need help asap.


Viewing all articles
Browse latest Browse all 12111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>