COMSATS is a well famous University for Computer Science. It Keeps the Student’s record in a well-mannered way. Write a C Program using Concepts of Arrays and string functions. You are required to create a menu-based program which should be able to perform following tasks by using Functions: 1. Add New Student 2. Remove Existing Student 3. Search Student (one OR more) by Department 4. Search Student (one OR more) by City 5. Search Student (one OR more) by Program (Using Array Sorting) 6. Update Existing Student (Using Pointers) 7. Find Total Number of Students of Specific Department, , City or Program wise 8. Find Average Result of Specific Department 9. Search Specific Student by Reg No. and Find whether He is Pass ‘OR’ Fail , Like your Result Card 10. Find the grade each subject of the student by registration No. Each Student should have Following Attributes: I. Reg No (Unique for each student) II. Name III. DOB IV. Department (Department values should be ‘Management’ or ‘Computer Science’ or ‘Physics’) V. City VI. Program (like BSCS, BSM, BSSE etc.) VII. Subjects (Maximum 5) VIII. Obtained Marks in each subject out of 100 Note: 1. Each Function should get appropriate inputs. 2. Each Function should return appropriate value if required. 3. Use of Pointers and Array Sorting should be applied in program. 4. Program must be well commented. Your task is to implement File Handling on each function you created in .Your Program should do following tasks using File Handling (Read and Write files according to functions): 1. Add New Student 2. Remove Existing Student 3. Search Student (one OR more) by Department 4. Search Student (one OR more) by City 5. Search Student (one OR more) by Program (Using Array Sorting) 6. Update Existing Student (Using Pointers) 7. Find Total Number of Students of Specific Department 8. Find Average Result of Specific Department 9. Search Specific Student by Reg No. and Find whether He is Pass ‘OR’ Fail 10. Find the grade each subject of the student by registration No. Each Student should have Following Attributes: I. Reg No (Unique for each student) II. Name III. DOB IV. Department (Department values should be ‘Management’ or ‘Computer Science’ or ‘Physics’) V. Program (like BSCS, BSM, BSSE etc.) VI. Subjects (Maximum 5) VII. Obtained Marks in each subject out of 100 Note: 1. Each Function should get appropriate inputs. 2. Each Function should return appropriate value if required. 3. Use of Pointers and Array Sorting should be applied in program. 4. Program must be well commented.
COMSATS is a well famous University for Computer Science. It Keeps the Student’s record in a
well-mannered way. Write a C
create a menu-based program which should be able to perform following tasks by using Functions:
1. Add New Student
2. Remove Existing Student
3. Search Student (one OR more) by Department
4. Search Student (one OR more) by City
5. Search Student (one OR more) by Program (Using Array Sorting)
6. Update Existing Student (Using Pointers)
7. Find Total Number of Students of Specific Department, , City or Program wise
8. Find Average Result of Specific Department
9. Search Specific Student by Reg No. and Find whether He is Pass ‘OR’ Fail , Like your Result
Card
10. Find the grade each subject of the student by registration No.
Each Student should have Following Attributes:
I. Reg No (Unique for each student)
II. Name
III. DOB
IV. Department (Department values should be ‘Management’ or ‘Computer Science’ or ‘Physics’)
V. City
VI. Program (like BSCS, BSM, BSSE etc.)
VII. Subjects (Maximum 5)
VIII. Obtained Marks in each subject out of 100
Note:
1. Each Function should get appropriate inputs.
2. Each Function should return appropriate value if required.
3. Use of Pointers and Array Sorting should be applied in program.
4. Program must be well commented.
Your task is to implement File Handling on each function you created in .Your Program should do following
tasks using File Handling (Read and Write files according to functions):
1. Add New Student
2. Remove Existing Student
3. Search Student (one OR more) by Department
4. Search Student (one OR more) by City
5. Search Student (one OR more) by Program (Using Array Sorting)
6. Update Existing Student (Using Pointers)
7. Find Total Number of Students of Specific Department
8. Find Average Result of Specific Department
9. Search Specific Student by Reg No. and Find whether He is Pass ‘OR’ Fail
10. Find the grade each subject of the student by registration No.
Each Student should have Following Attributes:
I. Reg No (Unique for each student)
II. Name
III. DOB
IV. Department (Department values should be ‘Management’ or ‘Computer Science’ or ‘Physics’)
V. Program (like BSCS, BSM, BSSE etc.)
VI. Subjects (Maximum 5)
VII. Obtained Marks in each subject out of 100
Note:
1. Each Function should get appropriate inputs.
2. Each Function should return appropriate value if required.
3. Use of Pointers and Array Sorting should be applied in program.
4. Program must be well commented.
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 3 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)