Write a complete C or C++ program to implement student directory. Consider the structure fields given below.
Question:
Write a complete C or C++ program to implement student directory. Consider the structure fields given below. Your program should have the following menu. Write necessary user defined functions for each of the menu entries:
Menu:
1- Add a new student to directory
2- Delete a student from the directory
3- List available students
4- Search a student:
A
Search according to student id
B Search according to student name
5- Update student information
6- Sort the list
A - Sort according to student id (ascending order)
B Sort according to student name (alphabetic order)
C- Sort according to registration year (descending order)
7- Display the student information holding max.
cgpa
8- Quit
struct date
{
int day, month, year; };
struct student
{
int std_id;
char std_name[20], std_surname[20];
struct date reg_date;
float cgpa;
}student_directory[100];
Important notes:
• Write a user defined function for each menu option.
• Please upload your source code from the Moodle.
Systems analysis and design
ISBN: 978-0136089162
8th Edition
Authors: kenneth e. kendall, julie e. kendall