subject
Engineering, 05.05.2020 12:52 kulfif8441

#include #include #include using namespace std; class Song { public: void SetNameAndDuration(string songName, int songDuration) { name = songName; duration = songDuration; } void PrintSong() const { cout << name << " - " << duration << endl; } string GetName() const { return name; } int GetDuration() const { return duration; } private: string name; int duration; }; int main() { vector songPlaylist; Song currSong; string currName; int currDuration; unsigned int i; cin >> currName; while (currName != "quit") { /* Your code goes here */ } for (i = 0; i < songPlaylist. size(); ++i) { currSong = songPlaylist. at(i); currSong. PrintSong(); } return 0; }

ansver
Answers: 1

Another question on Engineering

question
Engineering, 04.07.2019 03:10
What precautions should you take to prevent injuries when dealing with heavy loads?
Answers: 1
question
Engineering, 04.07.2019 18:20
How much power could a wind turbine produce if it had the following specifications? cp = 0.45 -d=1.2kg/m3 d=50m v 5m/s
Answers: 2
question
Engineering, 04.07.2019 19:20
A5 kg block of fe is dropped into a very large vat of water. the fe and water initial temperatures are 95 and 25 c, respectively. the fe final temperature is 25 c and the water can be treated as a thermal reservoir,. treated as a thermal reservoir take the water to be the system and determine the entropy generation. report vour answer in kj/k.
Answers: 1
question
Engineering, 06.07.2019 05:10
Asteam turbine is supplied with steam at 28bar and 425c. a fraction of the steam is extracted at 1.2bar to heat the feed water in one open feed water heater. the rest of the steam expands in the low pressure stage of the turbine to 0.08bar. a)-sketch the regenerative rankine cycle with open feed water heater on the t-s diagram. b)-assuming isentropic expansion in both stages of the turbine, find the cycle efficiency. do not assume negligible pump work.
Answers: 1
You know the right answer?
#include #include #include using namespace std; class Song { public: void SetNameAndDuration(string...
Questions
Questions on the website: 13722362