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
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.
Step by Step Solution
There are 3 Steps involved in it
Heres the C program for a student directory implementing the functionalities you described C include include include using namespace std struct date i... View full answer
Get step-by-step solutions from verified subject matter experts
