Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CMPE - 2 2 3 / ISYE - 2 2 3 ALGORITHMS AND PROGRAMMING 2 0 2 3 / 2 0 2 4 Fall Homework

CMPE-223/ ISYE-223
ALGORITHMS AND PROGRAMMING
2023/2024 Fall
Homework
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. If you have difficulty or problems about upload process, please e-mail to
rismai@ciu.edu.tr kyurtkan@ciu.edu.trormbuzun@ciu.edu.tr.
Submission date: 14th of January 2024, SUNDAY, @ 23:55.
Late submission penalty: ,%10 per day.
GOOD LUCK!!!
2
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions