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
kotegsom [21]
3 years ago
13

std::string x[n]; int mode1count = 0; // msft int mode2count = 0; // appl int mode3count = 0; // csco int mode4count = 0; // imb

int i; for(i = 0; i < n; ++i) // Set the array of strings x[i] = modeList[i]; for(i = 0; i < n; ++i) { if(x[i] == "msft") ++mode1count; else if(x[i] == "appl") ++mode2count; else if(x[i] == "csco") ++mode3count; else if(x[i] == "imb") ++mode4count; }
Engineering
1 answer:
rosijanka [135]3 years ago
7 0

Answer:

std::string x[n];

int mode1count = 0; // msft

int mode2count = 0; // appl

int mode3count = 0; // csco

int mode4count = 0; // imb

int i;

for(i = 0; i < n; ++i) // Set the array of strings

x[i] = modeList[i];

for(i = 0; i < n; ++i)

{

if(x[i] == "msft")

++mode1count;

else if(x[i] == "appl")

++mode2count;

else if(x[i] == "csco")

++mode3count;

else if(x[i] == "imb")

++mode4count;

}

Explanation:

It is important to ensure that there is adequate space and necessary punctuation when developing codes and programming to avoid getting error messages when running the codes. In this problem, the codes required are shown in the answer section. The codes are properly writing and arranged.

You might be interested in
During the era of known as the Stone Age, no tools were used and no technology was created.
Shtirlitz [24]

Answer:

stone wheel

Explanation:

it was built around 3500 B.C.

5 0
4 years ago
Determine the adiabatic flame temperature of carbon monoxide (CO) burning in air at an equivalence ratio of unity. The reactants
zheka24 [161]

Answer:

Explanation:

The detailed analysis and step by step calculation is as shown in the attachment.

3 0
4 years ago
Where did fossil fuels come from
Levart [38]

Any fuel such as coal, petroleum (crude oil) or natural gas that has developed within the Earth over millions of years from the decayed remains of bacteria, plants or animals

6 0
3 years ago
Read 2 more answers
A CL soil is being used for compacted fill on a project. A sample of the compacted soil with a total volume of 1/30 ft3 weighs 4
Genrish500 [490]

Answer:

A. 0.4

B. 1.003

C. 0.83

Explanation:

The void ratio of a mixture is defined as the ratio of the volume of voids to volume of solids.

Total volume of soil = 1/30 ft3

= 1 ft3/30 * 0.0283 m3/1 ft3

= 9.43 x 10^-4 m3

Mass of water is in the soil = 20% * 4.8

= 0.96 pounds of water

= 0.96 * 0.454

= 0.44 kg

SG = density of substance/density of water

= 2.66 * 1 kg/l

Density of the soil = 2.660 kg/l

Mass of solid = 80 %

= 80% * 4.8 * 0.454

= 1.74 kg

Volume of solids = mass/density

= 1.74/2.66

= 6.63 l

= 6.63 x 10^-4 m3.

The volume of voids is found by adding the volume of water and the volume of air.

Total volume of soil = volume of (solids + voids)

9.43 x 10^-4 = 6.63 x 10^-4 + voids

Volume of voids = 2.8 x 10^-4 m3

A.

Void ratio = volume of void : volume of solids

= 2.8 : 6.63

= 0.4

B.

Y = (1 + w) * Gs * Yw * (1 + e)

Y = moist unit weight

Yw = unit weight of water

w = moisture content of the material

Gs = pecific gravity of the solid

e = void ratio

= (1 + 0.2) * 2.66 * 0.44 * (1 + 0.4)

= 1.003.

C.

gd = Y/(1 + w)

Or

= Gs * Yw * 1/(1 + e)

= 0.83.

6 0
3 years ago
Pls help!!! will give brainly!!!
gogolik [260]
Short-term goals are planned for the near future while long-term goals will take longer to complete. An example of a short-term goal is trying to get into a certain college. A long-term goal is wanting to have a big family.
3 0
3 years ago
Other questions:
  • A satellite orbits the Earth every 2 hours at an average distance from the Earth's centre of 8000km. (i) What is the average ang
    7·1 answer
  • What is the magnitude of the maximum stress that exists at the tip of an internal crack having a radius of curvature of 3.5 × 10
    9·1 answer
  • Whats the best used for Arch bridge
    11·1 answer
  • A 200 liter tank is connected to a line flowing nitrogen (N2) at 30°C and 10 MPa pressure. The tank initially contains nitrogen
    11·1 answer
  • The heavier an atomic nucleus gets, the less energy the star is able to extract from it through nuclear fusion. When it gets to
    7·1 answer
  • Which of the following sentences uses the active voice
    15·1 answer
  • Which method of freezing preserves the quality and taste of food?
    8·1 answer
  • A high compression ratio may result in;
    13·1 answer
  • Which step in the engineering design process does not come before building a<br> prototype?
    12·1 answer
  • 6. The humanistic perspective focuses on free will, Free will is your ability to OA. believe what others believe. B. make your o
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!