Write a complete C or C++ program to implement a digital music archive program. The program should be able to allow the following operations through the menu structure. Use FILE to write the outputs, the song directory: Menu: 1- Add a new song to directory 2- Delete a song from the directory 3- List all songs in the directory 4- Search a song: A – Search according to ID B – Search according to category 5- Update song information 6- Sort according to ID A - In ascending order B – In descending order 7- Sort according to category in alphabetic order 8- Quit struct date { int day, month, year; }; struct car { int ID; char songname[100], singersname[30], category[10]; struct date albumdate; }song_directory[100];
Write a complete C or C++ program to implement a digital music archive program. The program should be able to allow the following operations through the menu structure. Use FILE to write the outputs, the song directory:
Menu:
1- Add a new song to directory
2- Delete a song from the directory
3- List all songs in the directory
4- Search a song:
A – Search according to ID
B – Search according to category
5- Update song information
6- Sort according to ID
A - In ascending order
B – In descending order
7- Sort according to category in alphabetic order
8- Quit
struct date
{
int day, month, year;
};
struct car
{
int ID;
char songname[100], singersname[30], category[10];
struct date albumdate;
}song_directory[100];
Step by step
Solved in 3 steps with 4 images