Question: Please I need help with this assignment ASAP I will need a makefile for this code C++ code You are asked to write an app
Please I need help with this assignment ASAP
I will need a makefile for this code
C++ code
You are asked to write an app to keep track of a relatively small music library. The app should load song information from a data file once the app is started. It should allow user to view, add, remove, and search for songs. The app should save the data back to the same data file when the program exits.
What Your Program Should Do (Same as Project 2) Write an interactive text based menu interface (using a loop) that will allow the user to
Enter information for a new song Display information for all the songs in the database with index for each song Remove a song by index Search for songs by a certain artist Search for songs by a certain album Quit
For each song, you need to keep track of:
title artist duration album
Allow the program to keep looping until user wants to quit. When the program starts, it should load the tasks from external file ("songs.txt") into memory. When user enters information about the new song, the program needs to read them in, save them in memory and eventually write them to the external data file ("songs.txt"). The file format could look like:
Stereo Hearts;Gym Class Heroes;3;34;The Papercut Chronicles II Counting Stars;OneRepulic;4;17;Native The ';' is used as a delimiter or field separator. Each record ends with a new line character. Also the above sample data came from my teen son, not a reflection of your instructors music taste
Some Implementation Requirements: (Different from Project 2!!!)
1. Use structs or class named Song to model song. You are encouraged in every way to use class to model song in this project. If you do the work here, you will benefit from this in Project 4 and 5. 2. Use class named SongList to model the collection of songs. 3. Use array of Song to implement class SongList 4. Use int data type to model the duration (minutes and seconds) for each song. You must do data validation for this to prevent letters or characters from crashing your code. 5. When using class, please make sure you encapsulate the data which means make all the instance data member private and provide accessor methods and mutator methods to access and manipulate the data.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
