1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
katen-ka-za [31]
3 years ago
5

#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; }
Engineering
1 answer:
Fed [463]3 years ago
8 0

Answer:

Check the explanation

Explanation:

#include <iostream>

#include <string>

#include <vector>

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<Song> songs;

   Song currentSong;

   string currentName;

   int currentDuration;

   unsigned int i;

   cin >> currentName;

   while (currentName != "quit") {

       cin >> currentDuration;

       Song temp;

       temp.SetNameAndDuration(currentName, currentDuration);

       songs.push_back(temp);  

       cin >> currentName;

   }

   for (i = 0; i < songs.size(); ++i) {

       currentSong = songs.at(i);

       currentSong.PrintSong();

   }

   return 0;

}

You might be interested in
For a fluid with a Prandtl Number of 1000.0, the hydrodynamic layer is thinner than the thermal boundary layers. a) True b) Fals
kvv77 [185]

Answer:

(b)False

Explanation:

Given:

 Prandtl number(Pr) =1000.

We know that   Pr=\dfrac{\nu }{\alpha }

  Where \nu is the molecular diffusivity of momentum

             \alpha is the molecular diffusivity of heat.

 Prandtl number(Pr) can also be defined as

    Pr=\left (\dfrac{\delta }{\delta _t}\right )^3

Where \delta is the hydrodynamic boundary layer thickness and \delta_t is the thermal boundary layer thickness.

So if Pr>1 then hydrodynamic boundary layer thickness will be greater than thermal boundary layer thickness.

In given question Pr>1 so  hydrodynamic boundary layer thickness will be greater than thermal boundary layer thickness.

So hydrodynamic layer will be thicker than the thermal boundary layer.

8 0
4 years ago
When is a handrail required for stairs?
Leviafan [203]

Answer:

after 8 stepshddnffuddbnggkbdbkloyr

5 0
3 years ago
Ethane (component A - C2H6) and hydrogen (component B) are fed to a differential reactor where they react on the catalyst to for
Fofino [41]
HELP ILL GIVE MOST BRAINLY AND 50 POINTS
HURRY PLEASE component c it is a compound so it will break
4 0
3 years ago
For a turning operation, you have selected a high-speed steel (HSS) tool and turning a hot rolled free machining steel. Your dep
Alisiya [41]

Answer:

MRR = 1.984

Explanation:

Given that                              

Depth of cut ,d=0.105 in

Diameter D= 1 in

Speed V= 105 sfpm

feed f= 0.015 ipr

Now  the metal   removal  rate   given as

MRR= 12 f V d

d= depth of cut

V= Speed

f=Feed

MRR= Metal removal rate

By putting the values

MRR= 12 f V d

MRR = 12 x 0.015 x 105 x 0.105

MRR = 1.984

Therefore answer is -

1.944

8 0
3 years ago
Marble A is placed in a hollow tube, and the tube is swung in a horizontal plane causing the marble to be thrown out. As viewed
Vilka [71]

Answer:

<em>The direction of ball will be Number 4 (as can be seen in attached picture) ---- the path of ball will be making some angle when it leaves the tube. </em>

Explanation:

The question is incomplete. So the picture, which is missing in question, is attached for your review.

As it can be seen in the picture, the ball coming out of the tube will have two components of velocity. One is along the length of tube (because ball is moving in that direction and is coming out from the hole), other is velocity component will be perpendicular to the tube (because the ball is made to move in that direction as the tube is rolling on the surface).

<em>So, taking the resultant of two vectors of velocity, the resultant direction of ball will be Number 4 (as can be seen in attached picture) ---- the path of ball will be making some angle when it leaves the tube. </em>

6 0
3 years ago
Other questions:
  • A freshwater jet boat takes in water through side vents and ejects it through a nozzle of diameter D = 75 mm; the jet speed is V
    5·1 answer
  • There are 30 students in a class. Choose the statement that best explains why at least two students have last names that begin w
    12·1 answer
  • Why do conditional statements always have only two outcomes?
    8·1 answer
  • Am i eating ramon nooddles rn
    10·2 answers
  • Given a program with execution times broken down shown below. Assume that techniques can only be applied to accelerate the integ
    12·1 answer
  • What is the theoretical density in g/cm3 for Lead [Pb]?
    13·1 answer
  • In the given circuit, V(t)=12cos(2000t+45)V, R1=R2=2Ω, L1=L2=L3=3mH and C1=250μF. You are required to find the Thevenin equivale
    7·1 answer
  • What are the relevance of report writing
    9·1 answer
  • A pulse-jet baghouse is desired for a finished cement plant. Calculate the number of bags required to filter 500 m3/min of air w
    7·1 answer
  • Wells drilled by a nonprofit called Water for South Sudan use a pump that can provide up to 5,500 gallons of water per day. Use
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!