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
Elena L [17]
3 years ago
7

Basic C++ For Loop I'm trying to learn. Replit tells me that the for in the forloop is an error, but I don't know what's wrong.

Can anyone help?

Engineering
1 answer:
STatiana [176]3 years ago
8 0

Answer:

  curly brackets are missing

Explanation:

The body of the main() function need to be enclosed in curly brackets. Try this:

int P = 3000;

int main( ) {

  for (int t = 0; t < 10; t++) {

     cout << P;

  }

}

You might be interested in
Sharon is designing a house in an area that receives a lot of rainfall all year. Which material should she use to stick the wood
kakasveta [241]

Explanation:

She is passionate about architecture, typography, and black & white film ... Since moving to Texas, I've heard a lot of people say, "If you don't like ... Oc, 3.74, 56, 80 ... Not only does the weather have to be clear to pour the concrete, but it ... system that goes within the slab) is complete, any additional rain will

4 0
3 years ago
Air enters a cmpressor at 20 deg C and 80 kPa and exits at 800 kPa and 200 deg C. The power input is 400 kW. Find the heat trans
aksik [14]

Answer:

The heat is transferred is at the rate of 752.33 kW

Solution:

As per the question:

Temperature at inlet, T_{i} = 20^{\circ}C = 273 + 20 = 293 K

Temperature at the outlet, T_{o} = 200{\circ}C = 273 + 200 = 473 K

Pressure at inlet, P_{i} = 80 kPa = 80\times 10^{3} Pa

Pressure at outlet, P_{o} = 800 kPa = 800\times 10^{3} Pa

Speed at the outlet, v_{o} = 20 m/s

Diameter of the tube, D = 10 cm = 10\times 10^{- 2} m = 0.1 m

Input power, P_{i} = 400 kW = 400\times 10^{3} W

Now,

To calculate the heat transfer, Q, we make use of the steady flow eqn:

h_{i} + \frac{v_{i}^{2}}{2} + gH  + Q = h_{o} + \frac{v_{o}^{2}}{2} + gH' + p_{s}

where

h_{i} = specific enthalpy at inlet

h_{o} = specific enthalpy at outlet

v_{i} = air speed at inlet

p_{s} = specific power input

H and H' = Elevation of inlet and outlet

Now, if

v_{i} = 0 and H = H'

Then the above eqn reduces to:

h_{i} + gH + Q = h_{o} + \frac{v_{o}^{2}}{2} + gH + p_{s}

Q = h_{o} - h_{i} + \frac{v_{o}^{2}}{2} + p_{s}                (1)

Also,

p_{s} = \frac{P_{i}}{ mass, m}

Area of cross-section, A = \frac{\pi D^{2}}{4} =\frac{\pi 0.1^{2}}{4} = 7.85\times 10^{- 3} m^{2}

Specific Volume at outlet, V_{o} = A\times v_{o} = 7.85\times 10^{- 3}\times 20 = 0.157 m^{3}/s

From the eqn:

P_{o}V_{o} = mRT_{o}

m = \frac{800\times 10^{3}\times 0.157}{287\times 473} = 0.925 kg/s

Now,

p_{s} = \frac{400\times 10^{3}}{0.925} = 432.432 kJ/kg

Also,

\Delta h = h_{o} - h_{i} = c_{p}\Delta T =c_{p}(T_{o} - T_{i}) = 1.005(200 - 20) = 180.9 kJ/kg

Now, using these values in eqn (1):

Q = 180.9 + \frac{20^{2}}{2} + 432.432 = 813.33 kW

Now, rate of heat transfer, q:

q = mQ = 0.925\times 813.33 = 752.33 kW

4 0
3 years ago
Define extensive and intensive properties of thermodynamic system.
Flura [38]

Answer:

An intense property is a physical attribute of a system that is independent of the size of the system or the quantity of material it contains. An extensive property of a system, on the other hand, is dependent on the size of the system or the amount of material in it.

Explanation:

7 0
3 years ago
Read 2 more answers
Which of the following hazards is shared by surface mining and sub-surface mining?
lubasha [3.4K]

B I guess. since they both have potential to collapse

4 0
3 years ago
Read 2 more answers
You are ordering steel cable for a 250 foot long zip-line you are building in your back yard. The cable can be ordered in diamet
Margarita [4]

Answer:

If i am correct It should be 1/4 of an inch

Explanation:

Sorry but i can't quite explain

3 0
3 years ago
Read 2 more answers
Other questions:
  • Open the"stateData3.c" program and try to understand how the tokenization works. If you open the input file "stateData.txt", you
    15·1 answer
  • What is the name of the model/shape below?
    5·2 answers
  • 3–102 One of the common procedures in fitness programs is to determine the fat-to-muscle ratio of the body. This is based on the
    5·1 answer
  • What are the basic parts of a radio system
    15·1 answer
  • You are given a noninverting 741 op-amp with a dc-gain of 23.6 dB. The input signal to this amplifier is;Vin(t) = (0.18)∙cos(2π(
    5·1 answer
  • A microwave transmitter has an output of 0.1 W at 2 GHz. Assume that this transmitter is used in a microwave communication syste
    8·1 answer
  • Which of the following can not be used to store an electrical charge?
    11·1 answer
  • सत्य से अधिक उपयोगी एवं आज्ञापालन से श्रेष्ठ क्या है ?<br>answer fast plz​
    9·1 answer
  • 6) Describe the differences between the troposphere and stratosphere.
    14·1 answer
  • In order to live and grow, bacteria need moisture, food, the right temperature, and ______? Fill in the blank
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!