1. Consider a class having 'n' students. You need to read all the student marks for a particular subject and store only marks in a one dimensional array named as student_array and then have to do the following things one-by-one using recursion. Marks should be between 0 to 100. i) display all the marks on the screen and find the total and average marks scored in that subject. ii) find the minimum and maximum among all the marks. iii) counting the number of marks scored by the students which are below the average marks, total number of marks which are similar, and frequency of each mark stored in the array. [Hint: The main() function need to call three sub-functions by passing the array and the number of students using the following prototype. void diplay(int *n) // call by reference min_max(int n)// call by value count(int *n)// call by reference In order to extend the accessibility of student_array by all the programs of this assignment, declared student_array as 'extern int student_array 'in a header file. Subsequently, include this header file in all the programs. This is how we can share a common variable or function in different files. A sample example is shown at the end which will help you to use the extern variable.] 2. Extend the program by separating the odd and even marks into two separate arrays named as odd_marks and even_marks respectively and finally copied these two arrays into a third arrays named as odd_even_marks so that all the odds marks are stored before all the marks which are even.
1. Consider a class having 'n' students. You need to read all the student marks for a particular subject and store only marks in a one dimensional array named as student_array and then have to do the following things one-by-one using recursion. Marks should be between 0 to 100. i) display all the marks on the screen and find the total and average marks scored in that subject. ii) find the minimum and maximum among all the marks. iii) counting the number of marks scored by the students which are below the average marks, total number of marks which are similar, and frequency of each mark stored in the array. [Hint: The main() function need to call three sub-functions by passing the array and the number of students using the following prototype. void diplay(int *n) // call by reference min_max(int n)// call by value count(int *n)// call by reference In order to extend the accessibility of student_array by all the programs of this assignment, declared student_array as 'extern int student_array 'in a header file. Subsequently, include this header file in all the programs. This is how we can share a common variable or function in different files. A sample example is shown at the end which will help you to use the extern variable.] 2. Extend the program by separating the odd and even marks into two separate arrays named as odd_marks and even_marks respectively and finally copied these two arrays into a third arrays named as odd_even_marks so that all the odds marks are stored before all the marks which are even.
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
Q 1 and 2 C programing
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY