Write Function C Takes Two Array Arguments Containing 20 Elements Function Print Number O Q30616011

A. Write a function in C that takes two array arguments, each containing 20 elements. Your function should print out the number of odd elements in the first array and return the number of even elements in the 2nd array. 10 Marks B. Write a function in C that takes two arguments, one an integer and the other a string. The integer (called day) represents the day in a month (1- 31) and the string represents the day that the 1st of the month falls on Monday, Tuesday etc.). Your function should print out the day of the week that the argument day falls on 10 Marksl C. Write a program in C that reads in 150 floating point numbers that represent the results obtained by students in an exam. Once the 150 numbers have been read in your code should do the following: Print out the value of the highest mark achieved . Print out the number of students who scored less than half of the highest mark achieved 10 Marksl

A. Write a function in C that takes two array arguments, each containing 20 elements. Your function should print out the number of odd elements in the first array and return the number of even elements in the 2nd array. 10 Marks B. Write a function in C that takes two arguments, one an integer and the other a string. The integer (called day) represents the day in a month (1- 31) and the string represents the day that the 1st of the month falls on “Monday”, “Tuesday” etc.). Your function should print out the day of the week that the argument day falls on 10 Marksl C. Write a program in C that reads in 150 floating point numbers that represent the results obtained by students in an exam. Once the 150 numbers have been read in your code should do the following: Print out the value of the highest mark achieved . Print out the number of students who scored less than half of the highest mark achieved 10 Marksl Show transcribed image text

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *