you are asked to implement and test a program for cataloguing a collection of songs. Each song has the following details: Name of Band of Singer Name of Song Price Year of Release String String Floating point number Integer The program should carry out the following tasks: • Read in data from the standard input (keyboard) and save it appropriately organised in a file. • Retrieve from the file and print out data to the screen appropriately ordered the whole of available catalogue (e.g. Name of Band: XXXX, Name of Song YYYY, etc): The order should be according to Year of Release: Newer to Older. The following options are available: Read in data [1] Print out catalogue to screen [2] Save data to file [3] Exit Program [4] Enter your choice now: The User Interface of the program should be based on the following text based menu: After a task is performed the program should the User Interface and the user be probed for a new choice until Exit is requested. Programming hints: You could create a custom struct to hold the above details. You can use unformatted input to read in one line at a time into a string. This will allow you to read in names and titles with spaces, e.g. gets(str); to read characters from the standard input into a character array called str. Keep in mind that gets() does not let you specify a limit on how many characters are to be read so you must be careful with the size of the array pointed by str to avoid buffer overflows. You may also use fgets() although the usage differs from gets() slightly.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Please use Replit to complete in C  programming language. PLEASE FOLLOW guidelines CLOSELY AND SHOW OUTPUTS

you are asked to implement and test a program for cataloguing a collection of songs. Each
song has the following details:
Name of Band of Singer
Name of Song
Price
Year of Release
String
String
Floating point number
Integer
The program should carry out the following tasks:
• Read in data from the standard input (keyboard) and save it appropriately
organised in a file.
• Retrieve from the file and print out data to the screen appropriately ordered the
whole of available catalogue (e.g. Name of Band: XXXX, Name of Song YYYY, etc): The
order should be according to Year of Release: Newer to Older.
The User Interface of the program should be based on the following text based
menu:
The following options are available:
Read in data [1]
Print out catalogue to screen [2]
Save data to file [3]
Exit Program [4]
Enter your choice now:
After a task is performed the program should the User Interface and the user be probed for a new
choice until Exit is requested.
Programming hints:
You could create a custom struct to hold the above details.
You can use unformatted input to read in one line at a time into a string. This will allow you to read
in names and titles with spaces, e.g.
gets(str);
to read characters from the standard input into a character array called str. Keep in mind that gets()
does not let you specify a limit on how many characters are to be read so you must be careful with
the size of the array pointed by str to avoid buffer overflows.
You may also use fgets() although the usage differs from gets() slightly.
Transcribed Image Text:you are asked to implement and test a program for cataloguing a collection of songs. Each song has the following details: Name of Band of Singer Name of Song Price Year of Release String String Floating point number Integer The program should carry out the following tasks: • Read in data from the standard input (keyboard) and save it appropriately organised in a file. • Retrieve from the file and print out data to the screen appropriately ordered the whole of available catalogue (e.g. Name of Band: XXXX, Name of Song YYYY, etc): The order should be according to Year of Release: Newer to Older. The User Interface of the program should be based on the following text based menu: The following options are available: Read in data [1] Print out catalogue to screen [2] Save data to file [3] Exit Program [4] Enter your choice now: After a task is performed the program should the User Interface and the user be probed for a new choice until Exit is requested. Programming hints: You could create a custom struct to hold the above details. You can use unformatted input to read in one line at a time into a string. This will allow you to read in names and titles with spaces, e.g. gets(str); to read characters from the standard input into a character array called str. Keep in mind that gets() does not let you specify a limit on how many characters are to be read so you must be careful with the size of the array pointed by str to avoid buffer overflows. You may also use fgets() although the usage differs from gets() slightly.
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY