#include using namespace std; // Class representing music data class Song { public: string musicName, musicDescription; }; // Function to take input for music description Song addDescription() { Song...


#include
using namespace std;


// Class representing music data
class Song {
public:
string musicName, musicDescription;
};


// Function to take input for music description
Song addDescription()
{
Song s1;
cout<"enter the="" music="" name="" :="">
cin>>s1.musicName;
cout<"enter the="" music="" description="" :="">
cin>>s1.musicDescription;
return s1;
}


// Function to write music object details into a txt file
void storeInfoToDatabase(Song s){
ofstream fileObject;


// Opening the file in append mode
fileObject.open("Database.txt", ios::app);
fileObject <>
fileObject < "="">
fileObject <>
fileObject <>
}


// Driver Function
int main(){
Song s = addDescription();
storeInfoToDatabase(s);
cout<"data written="" into="" file="">


return 0;
}


To the attached music management system<br>ww ww w w<br>w mm w<br>program in the text;<br>-Add a function that will allow us to add the prices<br>www<br>ww ww m w m<br>of music;<br>-Add a function that will give the total price of the<br>music the user bought.<br>www ww<br>

Extracted text: To the attached music management system ww ww w w w mm w program in the text; -Add a function that will allow us to add the prices www ww ww m w m of music; -Add a function that will give the total price of the music the user bought. www ww

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here