Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in C++ please 5 7 8 9 10 Write Album's PrintSongslonger than member function to print all the songs from the album whose duration is

in C++ please
image text in transcribed
image text in transcribed
image text in transcribed
5 7 8 9 10 Write Album's PrintSongslonger than member function to print all the songs from the album whose duration is longer than the value of the parameter songDuration. Use Song's PrintSong0 member function to print a song, 1 Sinclude 3. Sinclude 15 int GetDuration() const { return duration: 16 string GetNane const { return none;) 17 18 private: 19 int duration: 20 string name; 21 ); 22 23. class Album 24 public: 25 void Set Nane(string albumome) (nome - albumName:) 26 void Input Songs: 27 void PrintName const { cout > currDuration: while (currDuration > 0) { 42 getline(cin, currName); 43 currSong SetDurationAndNane(currDuration, currName): olbunsongs.push backcurrSong); 45 cin >> currDuration: 46 } 47) 48 49 void Album :PrintSongslonger Than(int songDuration) const { 50 unsigned int i; 51 Song currSong: 52 53 cout

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Database And Expert Systems Applications 31st International Conference Dexa 2020 Bratislava Slovakia September 14 17 2020 Proceedings Part 1 Lncs 12391

Authors: Sven Hartmann ,Josef Kung ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

303059002X, 978-3030590024

More Books

Students also viewed these Databases questions