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
(Architecture) Sarah is an environmental activist. She frequently conducts various programs and activities in her community to p
ddd [48]

The council from which Sarah can obtain her building certification is;

<u><em>US Green Building Council</em></u>

  • We are told that Sarah is an environmental activist because she conducts a lot of programs to advocate for clean and sustainable environment.

Now, there is a program called LEED which is an acronym for <em>Leadership in </em>

<em>Energy and Environmental Design</em> standards that is necessary for those

that want to measure the greenness of buildings.

     This <em>LEED</em> program explained above is organized by an organization in

the United States of America (USA) known as US Green Building Council

(USGBC). This program is for everyone who wants to be a certified

environmental activist and thus i t is recommended that Sarah gets her

certification here.

Read more at; brainly.com/question/24611198

5 0
3 years ago
A 25 kVA transformer has an iron loss of 200 W and a full-load copper loss of 350 W. Calculate the transformer efficiency for th
Oksanka [162]

Answer:

a. 97.32 percent

b. 97.92 percent

c. 95.91 percent

Explanation:

given parameters

apparent power, S = 25 kVA

Iron Loss, Piron = 200 W

copper Loss at full load, P cufl = 350 W

let the transformer efficiency at full load be E

let the real power be P out

a.

at full load and 0.8 power factor

P out = Scos∅

        = 25 x 10³ x 0.8

        =20000 W or 20 kW

efficiency at full load is

E =  (P out)/(P out + P iron + P cufl) x 100%

   =  (20000)/(20000 + 200 + 350) x 100%

   = 97.32%

b.

at 70% of full load at unity power factor of 1

Pout = 70% x Scos∅

        = 0.7 x 25 x 10³ x 1

        =  17,500W or 17.5kW

copper loss at 70% full load

P cu0.7fl = (70%)² x 350

                 = (0.7)² x 350

                 = 171.5 W

Iron loss remain the same, P iron = 200 W

Efficiency of transformer at 70% of full load

E =  (P out0.7)/(P out0.7 + P iron + P cufl0.7) x 100%

  =  (17500)/(17500 + 200 + 171.5) x 100%

  = 97.92%

c.

at 40% of full load at a power factor of 0.6

P out = 40% x Scos∅

= 0.4 x 25 x 10³ x 0.6

        =  6000 W or 6 kW

copper loss at 40% full load

P cu0.7fl = (40%)² x 350

                 = (0.4)² x 350

                 = 56 W

Iron loss remain the same, P iron = 200 W

Efficiency of transformer at 40% of full load

E =  (P out0.4)/(P out0.4 + P iron + P cu0.4) x 100%

  =  (6000)/(6000 + 200 + 350) x 100%

  = 95.91%

6 0
3 years ago
Soap is a very interesting chemical. We even discussed it on the discussion board. How does it work, exactly?
soldi70 [24.7K]

Answer:

Saponification is a process in which soap is formed from mixtures of  sodium or potassium salts of fatty acids. These fatty acids are reacted high temperature of At 80°C-100°C with alkali to extract salt. These alkali can be sodium hydroxide or potassium hydroxide.

Soap has both polar (ionic) and non polar molecules due to which it has characteristics of both hydrophilic substance (having tendency to mix with water) and hydrophobic substance (have tendency to mix with oils) and due to this nature it can act as an emulsifier.

An emulsifier has tendency to diffuse one liquid into another   liquid which is incapable of mixing with homogeneous liquid like water.

Cleansing action takes place due to presence of ionic and non-polar properties at same time, in combination with solubility principles. The ionic end of soap molecule is the salt end. It is hydrophilic (water soluble) in nature. The non-polar end cotains long hydrocarbon chains and is hydrophobic (water repellent).

When immiscible liquids like grease or oil mixed with soap water, non polar end (hydrophobic end) absorbs the dirt which means the soap will form the micelles and trap the dirt in it. As micelles is soluble in water it will remove the dirt with it.

4 0
3 years ago
Engineers please help im not good when it comes to drawing​
kakasveta [241]

Answer:

I'm good at drawing and computer-animated design

Explanation:

3 0
3 years ago
Quantity of erystallization centres in crystallization may increase a) insert imitation of crystallization b) use mechanical mix
babymother [125]

Answer: d) All of the above

Explanation: Crystallization is the process in which a solid crystalline structured material is obtained from the liquid substance. the quantity of crystallization center in crystal may increase due to several reasons like changing the cooling rate or mechanical mixing of the substances or imitation of crystals etc.

These processes end up adding mineral atoms to get attached to the center of crystal and hence increasing the size. Thus, the correct option is option (d).

4 0
3 years ago
Other questions:
  • A soil sample has a moist unit weight of 117 pcf, a moisture content of 17 percent, and soil particles with a specific gravity o
    11·1 answer
  • The Molybdenum with an atomic radius 0.1363 nm and atomic weight 95.95 has a BCC unit cell structure. Calculate its theoretical
    15·1 answer
  • Convection ovens operate on the principle of inducing forced convection inside the oven chamber with a fan. A small cake is to b
    5·1 answer
  • How are the fuel gas and oxygen cylinders fastened to the cutting outfit or portable truck​
    13·1 answer
  • A treated aluminum plate is irradiated with G-1000 Wm2 while at a temperature of 400 K The plate is treated with a surface coati
    5·1 answer
  • A transmitter has an output power of 0.1mW while the fiber has coupling loss of 12dB, attenuation of
    11·1 answer
  • Cooling fans can be controlled by
    13·1 answer
  • Air expands through a turbine from 10 bar, 900 K to 1 bar, 500 K. The inlet velocity is small compared to the exit velocity of 1
    5·1 answer
  • A hair dryer is basically a duct of constant diameter in which a few layers of electric resistors are placed. A small fan pulls
    9·1 answer
  • How can you use the IPDE Process to help protect motorcyclists while driving?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!